LOT_SIZE roor, but I don't know why

Hi,

I’m trying to sell my BTC via API. I can successfull buy a BTC with an API call, but I cannot sell it.

I have 0.01048051 BTC, and tried to run the API call with these values:

symbol='BTCBUSD&side=SELL&type=MARKET&quantity=0.0104695&timestamp=1627627063000'

but I receive an error:

{"code":-1013,"msg":"Filter failure: LOT_SIZE"}

Do you have any idea why I get this error message?

Thank you!

The issue is caused due to the given quantity not complying to the LOT_SIZE_FILTER bounds for BTCBUSD.

BTCUSD has the following LOT_SIZE_FILTER bounds
{ "filterType": "LOT_SIZE", "minQty": "0.00000100", "maxQty": "900.00000000", "stepSize": "0.00000100" },

A symbol’s filter bounds can be obtained using the exchange information endpoint

@tantialex Thank you for your answer!

I solved this issue by reduce the BTC balance value to 6 numbers after the dot, so I could run it with 0.010469 instead of 0.0104695.

How is it possible to use the full BTC balance in this API call?

Thanks!
Feriman