I am using python ccxt to place a sell order on binance.
order = exchange.create_order(symbol, 'market', 'sell', amount)
I have fetched the required precision, and got 5.
markets = exchange.load_markets()
amount_precision = market['precision']['amount']
So, I set the precision of amount, which was originally 0.0002535009794671468384415698887
to 5, and got 0.00025
.
But when I create an order with this amount value, I get the error:
binance amount of BTC/USDT:USDT must be greater than minimum amount precision of 3
Although I have set the precision to 5, which was the required value.
What does precision really mean in the binance api? Is it the number of significant digits? I need some clarification.