cryptoeax / arbbot

Arbitrator, a bitcoin/altcoin arbitrage trading bot
https://gitter.im/cryptoeax-arbbot/Lobby
GNU General Public License v3.0
199 stars 78 forks source link

WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying. #46

Closed Scorpic1 closed 6 years ago

Scorpic1 commented 6 years ago

After bot trade SYS coin, I get cyclic messages:

WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying.

Bot not writed info about it trade in P&L. Before, there was such a problem.

09:13:05: TRADING SYS-BTC FROM BITTREX TO POLONIEX

= FUNDS ============================================
     SOURCE :     0.04648438 BTC
     TARGET :   130.31071456 SYS

= SIMULATION =======================================
 TARGET MAX :   130.31071456
 SOURCE MAX :   219.72019391
   BUY RATE :     0.00003468
 BUY AMOUNT :   130.31071456
  BUY PRICE :     0.00453047
  SELL RATE :     0.00003500
SELL AMOUNT :   130.31051456
 SELL PRICE :     0.00454947
     PROFIT :     0.00001899

= TRADE ============================================
 SELL ORDER : 130.31051456 SYS @ 0.00003412 BTC
  BUY ORDER : 130.31071456 SYS @ 0.00003555 BTC

09:13:07: Placed sell order (POLONIEX ID: BTC_SYS:24102392573)
09:13:08: Placed buy order (BITTREX ID: 6a968d42-0866-4980-aa1e-79a1540bed49)
09:13:08: Waiting for order execution...
09:14:08: [POLONIEX] Cancelling order BTC_SYS:24102392573
09:14:08: [BITTREX] Cancelling order 6a968d42-0866-4980-aa1e-79a1540bed49
09:14:09: Checking trade results (1)...
09:14:09: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:09: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:10: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:10: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:11: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:11: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:11: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:12: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:12: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:12: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:13: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:13: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:17: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:17: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:18: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:18: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:19: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:19: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:20: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:20: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:21: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:21: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:22: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:22: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:23: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:23: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:23: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:23: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:24: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:24: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:25: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:25: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:26: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:26: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:26: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:26: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:34: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:34: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:36: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:36: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:45: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:45: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:46: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:46: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:47: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:47: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:48: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:48: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:48: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:48: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:49: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:49: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:50: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:50: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:51: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:51: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
09:14:53: Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)
09:14:53: WARNING: not reciving all buy trades from the exchange in time, waiting a bit and retrying...
SlowTimer [2023ms] at runtime/ext_mysql: slow query: INSERT INTO log (message, created) VALUES ('Received 470.31071456 SYS from the exchange while our wallets show a balance difference of 130.31071456 (130.31071456 - 0.00000000 finished deposits)', 1513934101);
cryptoeax commented 6 years ago

This is probably a manifestation of #39. What has happened here is that some SYS coin was withdrawn as we were making the trade and the bot isn't aware of this yet.

I'm going to close this issue as a duplicate because I think the problem here is well understood by now.

(Note that this infinite loop case left in the bot for now is a debugging facility that I have put in intentionally to catch corner cases like this to ensure they won't be ignored silently... When the pl-rewrite branch gets merged this infinite loop will be removed.)