DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.22k stars 2.04k forks source link

Bittrex 'Error during syncing balance' #1164

Closed brucetus closed 6 years ago

brucetus commented 6 years ago

System information

Describe the problem

New error popping up multiple times related to syncing balances and API keys

Source code / logs

I'm running multiple pairs in different screens. I've been getting this error recently which I haven't gotten before, so it may be related to recent changes. It seems to have something to do with my API key, but I've checked multiple times and it is correct in the conf.js and the permissions are correct. This is related to issue #1085 , which has been closed by the creator, but doesn't give a solid fix. Also he seemed to get the error instantly after starting up the bot while mine happens hours after. I think an easy fix would be to put in an line that prevents the bot from crashing if the API can't call the account balance, either around line 506 of the trade.js file or somewhere in Bittrex's exchange.js file. If anybody can think of a way to do this let me know. Thanks.

screen shot 2018-01-17 at 10 47 55 am
station384 commented 6 years ago

Are you running all instances at 1 minute intervals? (Below is my findings, I have found no official statements from bittrex) I ask because if bittrex is polled to fast it gives odd errors, one of them I've noticed is this error.
I don't know this for sure but from what I have noticed, there is a max polling interval for each IP address connected to the server, so if your behind a NAT, the combined polling of all clients can result in bittrex sending out errors 500 or 504, I've also gotten this when there site crashes.

brucetus commented 6 years ago

Im running with a 4h period_length and my polling options are all default. Eventually every instance I was running on Bittrex crashed with the same error :(

station384 commented 6 years ago

@brucetus, the fix for this has been merged into the unstable branch