Binance.API.Csharp.Client
Binance.API.Csharp.Client copied to clipboard
Error posting new limit order on decimal price
Hi!,
Is there a bug in the ammount of decimal places one can place in the price of a limit order?
If I put a price like the following it works fine (Price= 0.1):
But if I post a price like 0.01 it throws an error (error number 404).
Thanks!
what error are you getting? take a look at the issue #27. it might help... Your case can also be a minimum quantity problem, i usually check that on the binance desktop program... Just try to make a min possible trade and it pops up you the minimum value...
It was the ammount of decimal positions for the quantity.
Some cryptos have 3 decimal positions, some others have only 2. If you don't specify the exact ammount of decimal, not rounding is made on the other side and an 404 excepion is thrown.
Do you know a good way of knowing the ammount of decimals for the quantity value for each asset? Otherwise I will have to create a table where I tell for each asset, how many decimal positions it should be specified... hehhe
thanks!
I try with 2 decimals, and if and error happens, round to 0.