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
105 stars 20 forks source link

feat: replace order #75

Closed erkarl closed 3 years ago

erkarl commented 3 years ago

This PR changes arby's logic to try ReplaceOrder. If the existing order does not exist it will use PlaceOrder instead. Previously it would issue 2 RPC calls RemoveOrder -> PlaceOrder each time it needed to update orders.

EDIT by @kilrau : closes https://github.com/ExchangeUnion/market-maker-tools/issues/23