You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this might be a case of us protecting you from "bad" Yahoo data? Because what does it even mean that they have a P/E ratio of "infinity" ? 😅
I would probably try/catch this error and strip out that value (or disable validation and do my own checks). But if I'm missing something here, let me know. How would you ideally process { trailingPE: "Infinity" } ?
Validation Error
Minimal Reproduction
await yahooFinance.quoteSummary('BEEF3.SA", { modules: [ 'price', 'summaryDetail', 'financialData', 'defaultKeyStatistics', 'assetProfile', ], });
Symbol(s) that it happened for
Error Message
Environment
Browser or Node: Node
Node version (if applicable): v20.16.0
Npm version: 10.8.2
Browser version (if applicable):
Library version (e.g.
1.10.1
): 2.13.2Additional Context
The text was updated successfully, but these errors were encountered: