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

Unrecoverable error appears when cant place OpenDex order because of small CEX balance #104

Open raladev opened 3 years ago

raladev commented 3 years ago

CEX btc balance is 0.00000018 (would be also good to remove scientific notation from arby logs)

2020-09-25 11:07:31.3131 [GLOBAL] info: Starting. Hello, Arby.
2020-09-25 11:07:31.3131 [GLOBAL] info: Running with config:
LIVE_CEX: true
CEX: BINANCE
LOG_LEVEL: trace
DATA_DIR: /root/.arby
OPENDEX_CERT_PATH: /root/.xud/tls.cert
OPENDEX_RPC_HOST: xud
OPENDEX_RPC_PORT: 28886
MARGIN: 0.04
BASEASSET: BTC
QUOTEASSET: USDT
TEST_CENTRALIZED_EXCHANGE_BASEASSET_BALANCE: 123
TEST_CENTRALIZED_EXCHANGE_QUOTEASSET_BALANCE: 321
2020-09-25 11:07:31.3131 [Centralized] info: Base asset balance 1.8e-7 and quote asset balance 19.87633377
2020-09-25 11:07:31.3131 [Centralized] trace: BTCUSDT established connection to wss://stream.binance.com:9443/ws/btcusdt@aggTrade
2020-09-25 11:07:31.3131 [Centralized] trace: heartbeat from BTCUSDT socket
2020-09-25 11:07:31.3131 [OpenDEX] trace: Base asset balance 0.36674874 (maxinbound: 4.58316075, maxoutbound: 0.31674874) and quote asset balance 1498.636663 (maxinbound: 314.363337, maxoutbound: 1498.636663).
2020-09-25 11:07:33.3333 [Centralized] trace: New price: 10571.78
2020-09-25 11:07:33.3333 [OpenDEX] trace: Replacing BTC/USDT buy order with id arby-BTC/USDT-buy-order, quantity 0.00000017 and price 10148.9088
2020-09-25 11:07:33.3333 [OpenDEX] trace: Replacing BTC/USDT sell order with id arby-BTC/USDT-sell-order, quantity 0.00186132 and price 10994.6512
2020-09-25 11:07:33.3333 [OpenDEX] trace: Creating BTC/USDT sell order with id arby-BTC/USDT-sell-order, quantity 0.00186132 and price 10994.6512
2020-09-25 11:07:33.3333 [GLOBAL] info: Unrecoverable error: {"code":3,"details":"order does not meet the minimum BTC quantity of 100 satoshis","metadata":{"internalRepr":{},"options":{}}} - cleaning up.
2020-09-25 11:07:33.3333 [Centralized] trace: BTCUSDT stream closed
2020-09-25 11:07:33.3333 [OpenDEX] info: All OpenDEX orders have been removed
2020-09-25 11:07:33.3333 [Centralized] info: All CEX orders have been removed
Shutdown complete. Goodbye, Arby.
2020-09-25 11:07:33,714 INFO exited: arby (exit status 0; expected)
2020-09-25 11:07:34,719 INFO spawned: 'arby' with pid 244

> market-maker-tools@1.2.0 start:arby /app