arbbot icon indicating copy to clipboard operation
arbbot copied to clipboard

Binance Branch: Invalid Orderbook after Trades

Open gthom9 opened this issue 7 years ago • 7 comments

After each Binance trade I begin to receive the error below in the log files when looking for profitable trades. Also, the exchange balances seem to get disconnected from the web UI.

Received invalid orderbook from target exchange. Skipping...

The temporary fix is to restart the main.php and allow it to reconnect to Binance. Please let me know if there is any other information that would be useful.

gthom9 avatar Feb 11 '18 12:02 gthom9

A little more information to add. It appears that the Bot is not reading transaction balances after making a trade on Binance and these trades correspond to the Bot breaking as described above. See trade history below..

screen shot 2018-02-12 at 8 17 41 pm

gthom9 avatar Feb 13 '18 01:02 gthom9

Here is the error spit out immediately after the Bot breaks.

screen shot 2018-02-12 at 8 46 50 pm

gthom9 avatar Feb 13 '18 01:02 gthom9

@cryptoeax any idea what could be causing this issue?

ak9250 avatar Feb 18 '18 15:02 ak9250

I have been getting this error fairly frequently:

23:28:22: Checking XLM_BTC at BITTREX -> BINANCE... 23:28:27: Error during main loop: binance fetchDepositAddress failed => {"msg":"{"code":-1021,"msg":"Timestamp for this request is outside of the recvWindow."}","success":false} #0 /var/www/html/arbbot/bot/CCXTAdapter.php(160): ccxt\binance->fetch_deposit_address() #1 /var/www/html/arbbot/bot/Arbitrator.php(217): CCXTAdapter->getDepositAddress() #2 /var/www/html/arbbot/bot/Arbitrator.php(202): Arbitrator->checkAndTrade() #3 /var/www/html/arbbot/bot/Arbitrator.php(188): Arbitrator->testOrderbooks() #4 /var/www/html/arbbot/bot/Arbitrator.php(116): Arbitrator->checkPairAt() #5 /var/www/html/arbbot/bot/Arbitrator.php(92): Arbitrator->checkOpportunitiesAt() #6 /var/www/html/arbbot/bot/Arbitrator.php(59): Arbitrator->checkOpportunities() #7 /var/www/html/arbbot/bot/Arbitrator.php(747): Arbitrator->loop() #8 /var/www/html/arbbot/bot/Arbitrator.php(22): Arbitrator->innerRun() #9 (): Closure$Arbitrator::__construct() #10 /var/www/html/arbbot/lib/composer/vendor/react/event-loop/src/Timer/Timers.php(90): call_user_func() #11 /var/www/html/arbbot/lib/composer/vendor/react/event-loop/src/StreamSelectLoop.php(177): React\EventLoop\Timer\Timers->tick() #12 /var/www/html/arbbot/bot/Arbitrator.php(740): React\EventLoop\StreamSelectLoop->run() #13 /var/www/html/arbbot/main.php(177): Arbitrator->run() #14 {main}

And I've also noticed that my reported balances appear to be off (possibly/probably because of this issue?). For example: if I manually add up all of my BTC and the value of all my altcoins (in BTC) across all of the exchanges, it comes out to be about 0.0010638 BTC less than what Unrealized P&L reports is should be.

@cryptoeax any insight? thanks.

prusso avatar Feb 19 '18 23:02 prusso

@gthom9 did you resolve this issue? I have the same issue, with the same coin (VIA)

igladun avatar Feb 27 '18 16:02 igladun

@igladun no resolution yet. I will start looking further into a solution in the near future.

gthom9 avatar Feb 27 '18 22:02 gthom9

hello , any update on this fix please? thanks you very much

crypto-maniac avatar May 18 '18 02:05 crypto-maniac