Persist paper exchange state #324
Labels
No labels
blocked
breaking
bug
dependencies
duplicate
enhancement
good first issue
help wanted
question
tech debt
testing
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scion/arbitrader#324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be a nice to have feature for the paper exchanges to persist their state.
When running paper mode, if we restart the bot we will lose any entry trades on the paper exchange. Because of
arbitrade-statejson file (where we persist the entry trades), when the bot starts up it will load the content ofarbitrade-statejson file.If there are entry trades, after a while the bot will try to exit the trade but the paper exchange will not recognize the short that we are trying to close because it was lost during the restart.