
# Error Codes

Here is the error JSON payload:

```json
{
  "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
- The trading pair is not supported via the API. Check the supported symbols here: [https://api-spot.weex.com/api/v3/apiTradingSymbols](https://api-spot.weex.com/api/v3/apiTradingSymbols).

### -1059 HIGH_FREQUENCY_ORDER_LIMITED
- Too many high-frequency order requests in current window.

### -1060 API_KEY_SYMBOL_NOT_BOUND
- This API key is not bound to the 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.

## 23xx - Content Endpoints

### -2300 NEWS_CONTENT_NOT_FOUND
- Content does not exist.

### -2301 INVALID_SECTION
- Invalid section.

### -2302 ARTICLE_ID_REQUIRED
- `documentId` or `v4Id` is required.

### -2303 COIN_REQUIRED
- `symbol` or `slug` is required.

### -2304 INVALID_BANNER_TYPE
- Invalid Banner type.

### -2305 ARTICLE_DETAIL_PERMISSION_DENIED
- No permission to access article detail. The API Key owner's UID is not in the `newsSourceUids` whitelist.

## 25xx - Partner

### -2500 PARTNER_CHANNEL_UID_NOT_IN_SYSTEM
- The ChannelUID is not part of the partner system

### -2501 PARTNER_CHANNEL_UID_NOT_CONFIGURED
- The ChannelUID is not part of the partner openAPI configuration channel

### -2502 PARTNER_UID_NOT_IN_SYSTEM
- The UID is not part of the partner system

### -2503 PARTNER_UID_NOT_IN_CHANNEL
- Query users whose UID is not under the current channel.
