java-binance-api icon indicating copy to clipboard operation
java-binance-api copied to clipboard

MARKET_LOT_SIZE error (code = -1013

Open MiniCerise opened this issue 4 years ago • 1 comments

Hello everyone, When I try to place an order with the instruction create_test_order I have this error "APIError(code=-1013): Filter failure: MARKET_LOT_SIZE.

However, I read the documentation about this and I am sure that I respect the conditions (minQty, maxQty, filterType). It happens only when I try to sell 75000 TRX in BUSD, while it's fine with BTCBUSD and ETHBUSD. More precisely, the line I wrote is : order = client.create_test_order(symbol='TRXBUSD', side='SELL', type='MARKET', quantity=0.15*500000))

Do you have any ideas please?

MiniCerise avatar Oct 28 '21 20:10 MiniCerise

Hello everyone, When I try to place an order with the instruction create_test_order I have this error "APIError(code=-1013): Filter failure: MARKET_LOT_SIZE.

However, I read the documentation about this and I am sure that I respect the conditions (minQty, maxQty, filterType). It happens only when I try to sell 75000 TRX in BUSD, while it's fine with BTCBUSD and ETHBUSD. More precisely, the line I wrote is : order = client.create_test_order(symbol='TRXBUSD', side='SELL', type='MARKET', quantity=0.15*500000))

Do you have any ideas please?

Some assets don't have the same MARKET_LOT_SIZE and LOT_SIZE rules which I believe is the case for TRXBUSD, take a look at my answer: https://github.com/webcerebrium/java-binance-api/issues/7#issuecomment-1076805294

It may help you to figure it out.

rafak360 avatar Mar 23 '22 22:03 rafak360