Skip to main content
Version: Next

Common Response Format

Spot Open API Response Format

Success Response (code = 0):

{
"code": 0,
"msg": "success",
"data": { ... }
}

Futures Open API Response Format

Success Response (code = 0):

{
"code": 0,
"msg": "success",
"data": { ... }
}

Error Response (Common)

{
"code": 400,
"message": "Error description"
}

Futures HTTP Error Codes

HTTP status equals body code.

Error CodeDescription
400Invalid parameters / failed to read request body
401Missing auth parameters / timestamp expired / signature verification failed / invalid API Key
403IP not in whitelist / API Key has no trading permission
429Rate limit exceeded (per second/per minute) / order rate limit exceeded
500Internal error

Futures Business Error Codes (HTTP 200)

Business errors are returned with HTTP 200. Use the code field in the body to identify the specific error.

Error CodeDescription
0Success
1001System error
3000Trading pair not found / object not found
3004Third-party service error (K-line / Ticker query failed, etc.)
8001Below minimum trade amount
8002Close position order failed, please check your position
8003Insufficient balance to close, please check position and open orders
8004Order creation failed
8005Take-profit/stop-loss order creation failed
8006Take-profit/stop-loss order would be triggered immediately
8007Insufficient initial margin to adjust leverage
8008Failed to adjust leverage
8009Failed to switch margin mode
8010Cannot change margin mode while holding a position
8011Leverage error
8012Margin mode error
8013Failed to add margin
8014Cannot reduce leverage while holding an isolated position
8015Insufficient reducible margin
8016Exceeds maximum trade amount
8017Exceeds maximum position size
8018Insufficient margin
8100Product information error

Spot HTTP Error Codes

Spot API has no business error codes. All errors are returned with the corresponding HTTP status code; the specific reason is in the msg field.

Error CodeDescription
400Invalid parameters / trading pair not found / order/cancel failed (e.g. insufficient balance; see msg for details)
401Missing auth parameters / timestamp expired / signature verification failed / invalid API Key
403IP not in whitelist / no trading permission
404Order not found
429Rate limit exceeded / order rate limit exceeded
500Internal error / K-line service unavailable