CyberPunkMetalHead / Binance-volatility-trading-bot

This is a fully functioning Binance trading bot that measures the volatility of every coin on Binance and places trades with the highest gaining coins If you like this project consider donating though the Brave browser to allow me to continuously improve the script.
MIT License
3.4k stars 774 forks source link

binance APIError(code=-1003) #105

Closed guibabtc closed 3 years ago

guibabtc commented 3 years ago

Traceback (most recent call last): File "Binance Detect Moonings.py", line 408, in client = Client(access_key, secret_key) File "/home/guibabtc/bot/lib/python3.8/site-packages/binance/client.py", line 294, in init self.ping() File "/home/guibabtc/bot/lib/python3.8/site-packages/binance/client.py", line 520, in ping return self._get('ping', version=self.PRIVATE_API_VERSION) File "/home/guibabtc/bot/lib/python3.8/site-packages/binance/client.py", line 365, in _get return self._request_api('get', path, signed, version, kwargs) File "/home/guibabtc/bot/lib/python3.8/site-packages/binance/client.py", line 328, in _request_api return self._request(method, uri, signed, kwargs) File "/home/guibabtc/bot/lib/python3.8/site-packages/binance/client.py", line 309, in _request return self._handle_response(self.response) File "/home/guibabtc/bot/lib/python3.8/site-packages/binance/client.py", line 318, in _handle_response raise BinanceAPIException(response, response.status_code, response.text) binance.exceptions.BinanceAPIException: APIError(code=-1003): Way too much request weight used; IP banned until 1621207852808. Please use the websocket for live updates to avoid bans.

Anyone know how to add websocket?

Markkop commented 3 years ago

Which params did you use? Perhaps we can find out which combination we can/can't use for a give number of MAX_COINS or check time interval

guibabtc commented 3 years ago

MAX_COINS: 9

TIME_DIFFERENCE: 3

RECHECK_INTERVAL: 36

getsec commented 3 years ago

You hit the API limit it looks like

Markkop commented 3 years ago

Your configs looks fine, idk why it hit the API Limit :thinking:

FreshLondon commented 3 years ago

I had the same yesterday, holding a bunch of coins and 13USDT remaining - bot would attempt to buy from 8 or so pairs and be rejected on each one (not enough USDT for minimum order in bot settings).

After numerous failures, Binance said 'enough is enough' and closed the connection.

Are balances monitored, does the bot poll for availability before placing an order?

getsec commented 3 years ago

140 addresses the currency issue. Without knowing your config it would be hard to know exactly what happened here. If you experience this again, please open up another issue, also check out the discord.