Client error: POST https://testnet.binance.vision/api/v3/order?quantity=46558.79708333&symbol=ADAEUR&side=SELL&type=MARKET resulted in a 400 Bad Request response:
{“code”:-1013,“msg”:“Filter failure: LOT_SIZE”}
As one can see, the quantity is exactly the same as the maxQty, now it looks the system is also looking at the LOT_SIZE filter ?
I have not been able to figure out which filters that I have to apply to a SELL order and if I always have to apply the same filters or if the filters is depending on the symbol, so I have applied MARKET_LOT_SIZE and LOT_SIZE, but I still get an error:
All info is from TESTNET
The balance on my account DOTEUR 7063.33
I apply the MARKET_SIZE_LOT filter
{
“maxQty”:“1598.54137500”,
“minQty”:“0.00000000”,
“stepSize”:“0.00000000”,
“filterType”:“MARKET_LOT_SIZE”
}
so I reduce the qty to 1598.54137500
I then apply the LOT_SIZE filter
{
“maxQty”:“90000.00000000”,
“minQty”:“0.01000000”,
“stepSize”:“0.01000000”,
“filterType”:“LOT_SIZE”
}
LOT_SIZE filter is applicable to all orders. MARKET_LOT_SIZE is applicable only to market orders.
When both filters are configured, both are applied to market orders. However, when filter parameter is zero, this means the filter is not enforced for this parameter.
Thanks for your reply, but if you look at my example, I do use the market_size_lot and the lot_size, and the value I try to sell is 1598.54 which is within the step size of the lot size filter and is lower than the maxQty of the market_size_lot, which is why I don’t understand why I get the MARKET_LOT_SIZE error.
But it also seems that maxQty value of the filter is changing. Right now it’s 1333.14853556. Could it be that you tried sending a sell order when the quantity was already updated? Then an order for 1598.54 should not have passed the filter.
There are no guarantees. The filters may change arbitrarily.
Typically the exchange follows the market conditions, setting filters to catch clearly erroneous orders. However, there is no published policy as to how the limits are determined and when they are updated.