isolate stray IOEs to avoid jumping out of the loop #150

Merged
scionaltera merged 6 commits from catch-stray-ioes into master 2020-03-22 14:26:26 -07:00
scionaltera commented 2020-03-16 22:14:43 -07:00 (Migrated from github.com)

I got SocketTimeoutExceptions fetching the OpenOrders while 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.

I got `SocketTimeoutException`s fetching the `OpenOrders` while 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.
Commenting is not possible because the repository is archived.
No description provided.