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

Order is created before CEX balance update #96

Open raladev opened 4 years ago

raladev commented 4 years ago

Screenshot from 2020-09-23 14-16-25

Problem: Order replacement is starting after order filling, but CEX balance update starts after order replacement. And because of that there is a case when arby places order that depends on old cex balance (see screen)

Solution: check cex balance before order creation