Binance-volatility-trading-bot: APIError(code=-2010): Account has insufficient balance for requested action.
For some reason I don’t understand yet - it could not sell the 2563 CKBUSDT it bought… through the binance interface i could only sell 2560 (but in the history it did buy 2563) … does that make any sense?
CKBUSDT has gained 5.143% in the last 5 minutes, calculating volume in USDT
preparing to buy 2563 CKBUSDT
TP or SL reached, selling 2563 CKBUSDT...
APIError(code=-2010): Account has insufficient balance for requested action.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 28 (4 by maintainers)
Better to receive current fee percent from binance with API, because it can be different for different users https://python-binance.readthedocs.io/en/latest/binance.html#binance.client.Client.get_trade_fee
And just calculate it including that fee
Fixed, you just need to have some BNB
I’ve got bnb funds in account and this flag enabled - still get the error I’ve also turned off “pay fees in bnb” and I still get the error
enabled with bnb funds in account.
I was just able to resolve it and sell a coin. It seems as though the Capped_Sell and Sell_Amount have been removed from the current code. Look at @Eugnis comment from 3 days ago: https://github.com/CyberPunkMetalHead/Binance-volatility-trading-bot/issues/24#issuecomment-836887498 and replace the green code in yours. Lines 252-257 and 260-263 should be replaced.
Bot’s been running on my end for several hours without this issue. But I have pushed another update to allow people who have this issue to configure the sell amount for their bot in lines 78-79.
Yup - seems releated @Eugnis … Did have BNB - also did sell fine via web…
You are absolutely right, that is the diff… strange though is that I have “pay fees in BNB enabled”…