ExchangeUnion / market-maker-bot

MM Bot for OpenDEX. Make profits via arbitrage between OpenDEX and a connected CEX account like Binance 🤖
GNU Affero General Public License v3.0
104 stars 20 forks source link

Cancel OpenDEX orders when connectivity to Exchange is lost #2

Closed kilrau closed 4 years ago

kilrau commented 5 years ago

If our connection with exchange goes offline/becomes unresponsive, arby should cancel open OpenDEX orders. This is important, because otherwise xud could swap orders on OpenDEX, where the bot is unable to do the counter trade on e.g. Binance for.

ghost commented 4 years ago

I think what we want is a dead man's switch mode. If there's no ping in X amount of time => cancel all open orders (or exit trade positions in the future).

ghost commented 4 years ago

Just to clarify - this issue is now about when we lose connectivity to the centralized exchange. Arby must cancel all orders on OpenDEX and resume normal operations only when connectivity has been restored.

kilrau commented 4 years ago

Adjusted description.

xud <-> arby connection loss needs separae issue.