kucoin-php-sdk icon indicating copy to clipboard operation
kucoin-php-sdk copied to clipboard

"Order size increment invalid" when using decimals.

Open mkmnstr123 opened this issue 4 years ago • 2 comments

Hello,

So, I've been working for a while using the SDK and I noted that there is a problem when trying to use decimals. Also I noted this happens also in other of your libraries. Here is an example:

https://github.com/ccxt/ccxt/issues/1846#issuecomment-364370011

Also, in that thread it mentions a catalogue of valid decimal points, can you please provide it?

Thanks

Request:

{
   "clientOid":"60eb7238e742b",
   "size":"3258.921114",
   "symbol":"ADA-USDT",
   "type":"MARKET",
   "side":"sell",
   "timeInForce":"IOC"
}

Response: {"code":"400100","msg":"Order size increment invalid."}

mkmnstr123 avatar Jul 12 '21 01:07 mkmnstr123

did you try restricting your size amount to three or four places to see if that works?

RCTORONTO avatar Aug 18 '21 02:08 RCTORONTO

"funds":"3258.921114"

meti0time avatar Sep 11 '21 23:09 meti0time