isolate stray IOEs to avoid jumping out of the loop #150
No reviewers
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!150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "catch-stray-ioes"
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?
I got
SocketTimeoutExceptions fetching theOpenOrderswhile waiting for an order to fill and it jumped me out of the loop, tried to enter another trade and died because there wasn't enough available balance (one of the trades hadn't been closed). This solution is verbose but won't allow a broken connection from the long exchange to exit the loop or skip checking the short exchange.