kucoin-php-sdk
kucoin-php-sdk copied to clipboard
"Order size increment invalid" when using decimals.
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."}
did you try restricting your size amount to three or four places to see if that works?
"funds":"3258.921114"