Skip to main content
Version: V3

Error Codes

Here is the error JSON payload:

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

Errors consist of two parts: an error code and a message. Codes are universal, but messages can vary.

10xx - General Server or Network issues

-1000 UNKNOWN_ERROR

  • An unknown error occurred.

-1054 SYSTEM_ERROR

  • System error, please retry later.

10xx - Authentication / Access

-1040 ACCESS_KEY_EMPTY

  • ACCESS_KEY header is required.

-1041 ACCESS_SIGN_EMPTY

  • ACCESS_SIGN header is required.

-1042 ACCESS_TIMESTAMP_EMPTY

  • ACCESS_TIMESTAMP header is required.

-1043 INVALID_ACCESS_TIMESTAMP

  • Invalid ACCESS_TIMESTAMP.

-1044 INVALID_ACCESS_KEY

  • Invalid ACCESS_KEY.

-1045 INVALID_CONTENT_TYPE

  • Invalid Content-Type, please use application/json.

-1046 ACCESS_TIMESTAMP_EXPIRED

  • Request timestamp expired.

-1047 API_AUTH_ERROR

  • API authentication failed.

-1049 API_KEY_OR_PASSPHRASE_INCORRECT

  • API key or passphrase incorrect.

-1050 USER_STATUS_FORBIDDEN

  • User status is abnormal.

-1051 PERMISSION_DENIED

  • Permission denied.

-1052 INSUFFICIENT_PERMISSIONS

  • Insufficient permissions for this action.

-1053 PERMISSION_VALIDATION_FAILED

  • Permission validation failed.

-1055 USER_AUTH_NOT_SAFE

  • User must bind phone or Google authenticator.

-1056 ILLEGAL_IP

  • Invalid IP address.

-1057 USER_LOCKED

  • User account is locked.

-1058 NO_PERMISSION_TRADE_PAIR

  • No permission for this trading pair.

11xx - Request Content / Parameters

-1115 INVALID_TIME_IN_FORCE

  • Invalid timeInForce.

-1116 INVALID_ORDER_TYPE

  • Invalid order type.

-1117 INVALID_SIDE

  • Invalid side.

-1121 INVALID_SYMBOL

  • Invalid symbol.

-1128 INVALID_PARAM_COMBINATION

  • Combination of optional parameters invalid.

-1135 INVALID_JSON

  • Invalid JSON request.

-1140 PARAM_VALIDATE_ERROR

  • Parameter validation failed.
  • limit must be between %d and %d.
  • startTime must be a valid millisecond timestamp.
  • endTime must be a valid millisecond timestamp.

-1141 PARAM_EMPTY

  • Parameter '%s' cannot be empty.

-1142 PARAM_ERROR

  • Parameter '%s' is invalid.

-1150 REQUEST_METHOD_NOT_SUPPORTED

  • Request method not supported.

-1160 DECIMAL_PRECISION_ERROR

  • Decimal precision error.

-1170 QUERY_TIME_OUT_OF_RANGE

  • startTime must be within the last %d days.
  • Time range cannot exceed %d days.

-1171 START_TIME_AFTER_END_TIME

  • startTime cannot be greater than endTime.

-1180 CLIENT_OID_LENGTH_ERROR

  • client_oid length must not exceed 40 and must not contain special characters.

-1190 FORBIDDEN_ACCESS

  • Access forbidden. Please contact support.

20xx - Spot Config / Validation

-2007 SPOT_SYMBOL_NOT_EXIST

  • Symbol does not exist.

22xx - Spot Trading

-2200 SPOT_ORDER_NOT_EXIST

  • Order does not exist.