Delayed exchange initialization #151

Closed
opened 2020-03-25 12:28:21 -07:00 by scionaltera · 1 comment
scionaltera commented 2020-03-25 12:28:21 -07:00 (Migrated from github.com)

If an exchange is configured, but is in a blackout period when Arbitrader starts up, schedule initialization of the exchange when the blackout period is over. Dynamically add it to the rotation when it is up and running.

I think that if the exchange is not in a blackout but throws errors, stopping the bot is still the correct action to take. That indicates that the errors were unexpected and might need to be fixed by the operator: configuration problems, low account balance, wrong API keys, etc. The blackout period is something that has to be specifically configured (I generally set one up when the exchange emails me to warn about planned maintenance) and so we can reasonably assume that the broken exchange is known to be broken and should be ignored until the end of the blackout window.

If an exchange is configured, but is in a blackout period when Arbitrader starts up, schedule initialization of the exchange when the blackout period is over. Dynamically add it to the rotation when it is up and running. I think that if the exchange is not in a blackout but throws errors, stopping the bot is still the correct action to take. That indicates that the errors were unexpected and might need to be fixed by the operator: configuration problems, low account balance, wrong API keys, etc. The blackout period is something that has to be specifically configured (I generally set one up when the exchange emails me to warn about planned maintenance) and so we can reasonably assume that the broken exchange is known to be broken and should be ignored until the end of the blackout window.
sanitariu commented 2020-11-15 11:25:18 -08:00 (Migrated from github.com)

Maybe stopping the bot is correct but in my case bitstamp was the first exchange and order was already placed and executed. Then bot crashes on second exchange because of exchange not working or maintenance mode. I think we should notify somehow that bot crashed and order was executed on the first exchange.

Maybe stopping the bot is correct but in my case bitstamp was the first exchange and order was already placed and executed. Then bot crashes on second exchange because of exchange not working or maintenance mode. I think we should notify somehow that bot crashed and order was executed on the first exchange.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
scion/arbitrader#151
No description provided.