Repository navigation
fix(market): use completed candles for live analysis - #69
Merged
Merged
Conversation
|
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.



Summary
Closes #66.
Live CLI analysis and Discord
/predictnow use exactly the requested number of completed candles. For a four-hour candle starting at 12:00 UTC, a 14:00 snapshot excludes it and a 16:00 snapshot includes it. One UTC snapshot governs both pages and all retries; a missing window raises an error with requested and available closed counts.The first page requests one extra row where possible, with at most one older page to retain support for 1,000 completed candles. Shared interval arithmetic handles fixed minutes, daily, weekly, and calendar months while preserving backtest import paths and error types. Historical retrieval and persisted datasets retain their existing behavior. Both READMEs and the Unreleased changelog describe the defaults; package version remains 4.1.5 pending a separate release.
Validation
ruff check .ruff format --check .pyrightpytest— 165 passed, 85.58% coveragepython -m buildandpython -m twine check --strict— wheel and sdist passedChecklist
feature/<issue>-<description>..envfiles, or generated market data were committed.