Repository navigation
Conversation
A 4-week paper test was lost to any reboot, crash or sleep: the panel could only start a new session. - Resume restarts the last session's bot on the same database, so the wallet, open trades and history carry on. Sessions pin their pair list in their own config, so the monthly config.json update can't change a running test; older sessions get theirs back from the bot log. - The paper-vs-replay check finds periods with no log output for 10+ minutes and reports the downtime, since the replay trades straight through them. - Tests: resume, pinned pairs, the dry-run guard on resume, the risk-control resume staying separate, and gap detection.
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.
Why
The last go-live gate needs 4+ weeks of continuous paper trading. Until now, a reboot, crash or sleep ended the test: the panel could only start a new session, and the paper-vs-replay check couldn't see that the bot had been offline.
What
POST /api/paper/resume):config.jsonupdate can't change a running test.Testing
ruff check .clean;pytest73 passed. New tests cover:/api/bot/resume) stays separate from session resume