LasticotSoftware / Astibot

Astibot is a simple, visual and automated trading software for Coinbase Pro cryptocurrencies (Bitcoin trading bot)
MIT License
206 stars 49 forks source link

Resume ? #2

Closed alexdabast closed 3 years ago

alexdabast commented 4 years ago

Hi what happen if the bot crash or lost internet connection but had buy some crypto just before ? Will it resume his trading process ?

LasticotSoftware commented 4 years ago

Hi,

In case of connection loss, the trading process does not stop. It keeps running with the last price retrieved just before the Internet connection shutdown. In background, the bot tries to restart (reopen) the socket connexion in the Coinbase Pro driver (see on_close() in GDAXControler.py). Once Internet is back, trading will work again normally.

In case of a crash, the bot will not resume its trading process on re-launch.