Skip to content

Error codes

When an API call fails, the response uses a unified error format; HTTP status codes are used together with the codes below.

Error payload example

json
{
    "code": -1121,
    "msg": "Invalid symbol."
}

HTTP status codes

CodeMeaning
4XXInvalid request content, behavior, or format
429Rate limit exceeded; IP may be blocked soon
418Continued calling after 429; IP blocked
5XXInternal server error; do not assume failure—state may be unknown
504Gateway timeout—request may or may not have executed; verify separately

General error codes

CodeDescription
-1000Unknown error
-1001Service unavailable
-1002Unauthorized
-1003Rate limit exceeded
-1017Invalid Content-Type header
-1021Timestamp outside allowed recvWindow
-1022Invalid signature
-1100Illegal parameter
-1101Missing required parameter
-1102Wrong parameter type
-1121Invalid symbol / contract

Trading error codes

CodeDescription
-2010Order placement failed
-2011Cancel failed
-2013Order does not exist
-2014Invalid API key format
-2015Invalid API key or signature