This code (C#) works ok
await websocket.AccountTrade.NewOrderAsync(
symbol: "BTCUSDT",
side: Side.BUY,
type: OrderType.MARKET,
quoteOrderQty: 10M);
while this gets me an error
await websocket.AccountTrade.NewOrderAsync(
symbol: "BTCUSDT",
side: Side.BUY,
type: OrderType.MARKET,
quoteOrderQty: 10.8M);
{“id”:“170e8a71-c721-4b7c-ab22-9a6e1b6b0dc5”,“status”:400,“error”:{“code”:-1100,“msg”:“Illegal characters found in parameter ‘quoteOrderQty’; legal range is ‘^([0-9]{1,20})(\.[0-9]{1,20})?$’.”},“rateLimits”:[{“rateLimitType”:“REQUEST_WEIGHT”,“interval”:“MINUTE”,“intervalNum”:1,“limit”:6000,“count”:27}]}
I noticed it cant work with float numbers - it works for 10 but doesnt for 10.8
I use Binance.Spot 4.0.0.0 nuget package.
What is wrong with float numbers?