Hi all,
I’m fairly new to this and I’ve had a script running fairly consistently for a few weeks. A few days ago, I got the following error making a call to client.order_oco_sell:
binance.exceptions.BinanceAPIException: APIError(code=-1013): Filter failure: LOT_SIZE
with code that had previously been working. My code calculates the buy/sell prices and then rounds the figures to two decimal places. I’d made a slight tweak to that, but I don’t think that was the problem, since in the end I just used hard-coded values to test it and got the same error. This is my call from a few days ago, the price has changed since then so the amounts won’t work, but you get the idea:
oco_order = client.order_oco_sell(symbol='ETHBUSD', quantity=1, price='2682.67',
stopPrice='2629.23', stopLimitPrice='2618.55',
stopLimitTimeInForce='GTC')
I was able to enter these figures via the app no problem. I’ve also tried
round_step_size(amount, tick_size)
but I’m getting the same issue. I’ve notice stepSize is now 0.0001, whereas previously is it was 0.00001. I don’t know when this changed or if that has anything to do with it.
Any help would be much appreciated!