Fix Yahoo Finance 1w Timeframe Error #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Users experienced a
YFPricesMissingErrorwhen selecting the "1w" (weekly) timeframe in the web interface. The error occurred because:interval=1wto Yahoo Finance APIinterval=1wkfor weekly data (not1w)Error Message
YFPricesMissingError('possibly delisted; no price data found (1w 2025-08-26 00:00:00 -> 2025-09-25 11:54:56.758320) (Yahoo error = "Invalid input - interval=1w is not supported. Valid intervals: [1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 4h, 1d, 5d, 1wk, 1mo, 3mo]")')
Solution
1w→1wkand1mo→1moinyfinance_intervalstimeframeslist since interval validation is handled byyfinance_intervals