Skip to content

fix(loaders): keep yahoo 1m as minute bars, not monthly#761

Merged
warren618 merged 1 commit into
HKUDS:mainfrom
santhreal:fix/yahoo-interval-1m-not-month
Jul 22, 2026
Merged

fix(loaders): keep yahoo 1m as minute bars, not monthly#761
warren618 merged 1 commit into
HKUDS:mainfrom
santhreal:fix/yahoo-interval-1m-not-month

Conversation

@santhreal

Copy link
Copy Markdown
Contributor

_to_yahoo_interval("1m") uppercased the token to 1M, which the Yahoo map treats as monthly (1mo). Minute backtests silently fetched monthly bars.

Repro: _to_yahoo_interval("1m") returned 1mo on main. Longbridge already maps 1m and 1M separately.

Keep case for known minute tokens before the uppercase monthly map, and cover 1m/1M/15m/30m in the interval tests.

_to_yahoo_interval uppercased intervals before the map lookup, so project
interval 1m collided with monthly 1M and was sent to Yahoo as 1mo.

Signed-off-by: santhreal <64453045+santhreal@users.noreply.github.com>
@warren618
warren618 merged commit c4da283 into HKUDS:main Jul 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants