webcerebrium / java-binance-api

Java Binance API Client
MIT License
73 stars 40 forks source link

MARKET_LOT_SIZE error (code = -1013 #52

Open MiniCerise opened 2 years ago

MiniCerise commented 2 years ago

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?

rafak360 commented 2 years ago

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.