Binance-volatility-trading-bot: APIError(code=-1013): Filter failure: LOT_SIZE shows after new update.
APIError(code=-1013): Filter failure: LOT_SIZE is a new error which happens after the sell_amount = coins_bought[coin]['volume']*99.25/100 is added. Some currencies are not able to be traded with this amount as they need a integer.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 16 (6 by maintainers)
Have pushed another update, I have tested on 3 different coins and the LOT_SIZE error seems to be gone 😃
Ok I know what’s going on here. For coins that cannot return a step size in decimals, the code will automatically convert it to one decimal point: 413618.0. I’m guessing, but I suspect that 413618 would pass. Need to figure out a way to apply this without disrupting the accurate volumes
I have removed the CAPPED SELL SINCE IT DIDN’T HELP, have pushed (hopefully) a stability fix for the sell function. Been testing it throughout the day and it’s proven to be quite stable.
That’s what I’m using to calculate the step size in USDT, it’s the conversion to USDT that makes it a bit tricky but I’m getting there 😃
@CyberPunkMetalHead the LOT_SIZE is available in the get_exchange_info response with some other useful limits: api reference