Binance.API.Csharp.Client icon indicating copy to clipboard operation
Binance.API.Csharp.Client copied to clipboard

Error posting new limit order on decimal price

Open FerMosca opened this issue 7 years ago • 3 comments

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):

image

But if I post a price like 0.01 it throws an error (error number 404).

image

Thanks!

FerMosca avatar Jan 24 '18 21:01 FerMosca

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...

kimlage avatar Jan 27 '18 14:01 kimlage

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!

FerMosca avatar Jan 28 '18 18:01 FerMosca

I try with 2 decimals, and if and error happens, round to 0.

JavierMaura avatar Jan 31 '18 18:01 JavierMaura