Repository navigation
Set a provider's ohlc_mode in the config file - #154
Merged
Merged
Conversation
Adjusted bars break low <= close <= high by rounding errors: Yahoo's dividend-adjusted SPY by float noise, Alpaca's adjusted closes of serial reverse-splitters by whole dollars. Strict validation then rejects the whole download. ohlc_mode was settable only on a provider instance.
stefan-jansen
marked this pull request as ready for review
November 24, 2026 20:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #149.
Provider configuration accepts
extra.ohlc_mode: strict,drop, orwarn.ProviderManagerremoves this validation setting before constructing the provider, validates it, then applies it to the validation mixin. Omitting the option preserves strict validation. The configuration guide documents the setting.The real
update-allworkflow now also exits unsuccessfully when any configured download fails, instead of printing a successful completion and returning zero. Other symbols can still finish. Missing symbol files and invalid dataset symbol configuration count as failures.Verification at
fdf5135e19b24d7dfcff05a9778b3619d9919d34:1d76bf1because rejected downloads returned exit zero. They pass with the exit-status repair.The original contributor commit
cd82031is preserved. Tests use deterministic HTTP responses through the actual public pipeline and storage, without live credentials. The original submission disclosed Claude Code assistance; maintainer regression tests and the CLI repair also used an AI coding agent.