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.39k stars 775 forks source link

I got less than what it bought: APIError(code=-2010): Account has insufficient balance for requested action #121

Closed keelroy closed 3 years ago

keelroy commented 3 years ago

[2021-05-18 21:15:27] Preparing to buy 52.8 DNTUSDT [2021-05-18 21:15:27] Binance is being slow in returning the order, calling the API again... [2021-05-18 21:15:29] Binance is being slow in returning the order, calling the API again... [2021-05-18 21:15:30] Order returned, saving order to file [2021-05-18 21:15:30] Order with id 123689936 placed and saved to file [2021-05-18 21:15:38] not enough time has passed yet...Session profit:2.06% [2021-05-18 21:15:39] TP or SL reached, selling 52.8 DNTUSDT - 0.28397 - 0.27805 : -2.08% [2021-05-18 21:15:39] APIError(code=-2010): Account has insufficient balance for requested action. [2021-05-18 21:15:51] not enough time has passed yet...Session profit:2.06% [2021-05-18 21:15:51] TP or SL reached, selling 52.8 DNTUSDT - 0.28397 - 0.27529 : -3.06% [2021-05-18 21:15:52] APIError(code=-2010): Account has insufficient balance for requested action.

I log in Binance and check, I have only 52.7472 DNT. The script just continously try to sell, but got error. Exit, and manualy edit coins_bought.json 52.8->52.7 Re start the sctipt, it can sell the coin.

Amraki commented 3 years ago

Hi, this could be a simple rounding error but first things first: Is your Binance account set to use BNB for trading fees? The recommendation is about $5 USD worth to start.

keelroy commented 3 years ago

Yes, it is checked. Now i convert more $20 to BNB, and run bot again...

keelroy commented 3 years ago

Problem solved. Buy more BNB! :)

If not enough bnb in stock, binance take the fee, but the bot can't see this.