kucoin-api-docs icon indicating copy to clipboard operation
kucoin-api-docs copied to clipboard

[SANDBOX] POST against `/api/v1/orders` returns 504

Open backslash-f opened this issue 3 years ago • 5 comments

A GET for the same endpoint works just fine... Am I missing something?

ordersPOSTError

backslash-f avatar Feb 07 '22 22:02 backslash-f

I'm brand new to this, but getting the exact same error when trying a test trade with the API. Was there a solution identified?

FlipPhoneF3 avatar Mar 14 '22 03:03 FlipPhoneF3

@FlipPhoneF3 An update: in my case what was actually happening was 400005, Invalid KC-API-SIGN. But I could only verify that by testing against production:

{
"code": "400005",
"msg": "Invalid KC-API-SIGN"
}

This actually helped me to identify the issue on my side, which is now fixed.

So it looks like the SANDBOX environment is not returning the error 400005 as it should. If this could be fixed, that would be great.

(Bottom line: retest your authentication code against production.)

backslash-f avatar Mar 14 '22 07:03 backslash-f

Thank you! That was also my issue it seems. I'm so new I didn't even realize I had to create a new API for the sandbox environment. The videos I watched about doing this didn't mention anything about it.

Thanks for your help.

FlipPhoneF3 avatar Mar 15 '22 23:03 FlipPhoneF3

I was getting 504's on many endpoints that were previously working, but I realized I was still on the v1 keys, so I created a new v2 key and my issues went away.

garryjable avatar Mar 16 '22 00:03 garryjable