# Return Code Type

***

* The following return content is basic parameter verification. If the return code is not included in the return code types listed below, it is an error message returned from outside the business layer and needs to be docked with technical personnel.
* Part of the returned "msg" is not adapted to internationalization. Before that, you can solve the problem through the "Reason" below the msg to get the reason of issue or consult the technical team to obtain suggestion. This part will be optimized in the future

***

## 10XX - General Server or Network issues

{% hint style="info" %}

### Code:-1000 UNKNOWN

msg：An unknown error occurred while processing the request

Reason：The wrong input parameter symbol name or input wrong contract name
{% endhint %}

{% hint style="info" %}

### Code:-1001 DISCONNECTED

msg：内部错误; 无法处理您的请求。 请再试一次

Reason：Internal error; unable to process your request. Please try again.
{% endhint %}

{% hint style="info" %}

### Code:-1002 UNAUTHORIZED

msg：You are not authorized to execute this request. The request needs to send an API Key, and we recommend appending the X-CH-APIKEY to all request headers

Reason：The X\_CH\_APIKEY required for signature is not added to the header.
{% endhint %}

{% hint style="info" %}

### Code:-1003  TOO\_MANY\_REQUESTS

msg：请求过于频繁超过限制

Reason：Requests exceed the limit too frequently.
{% endhint %}

{% hint style="info" %}

### Code:-1004  NO\_THIS\_COMPANY

msg：您无权执行此请求 user not exit

Reason：You are not authorized to execute this request. User not exit Company
{% endhint %}

{% hint style="info" %}

### Code:-1006  UNEXPECTED\_RESP

msg：接收到了不符合预设格式的消息，下单状态未知

Reason：An unexpected response was received from the message bus. Execution status unknown. OPEN API server find some exception in execute request .Please report to Customer service.
{% endhint %}

{% hint style="info" %}

### Code:-1007  TIMEOUT

msg：等待后端服务器响应超时。 发送状态未知； 执行状态未知

Reason：Timeout waiting for response from backend server. Send status unknown; execution status unknown.
{% endhint %}

{% hint style="info" %}

### Code:-1014  UNKNOWN\_ORDER\_COMPOSITION

msg：不支持的订单组合

Reason：Unsupported order combination.
{% endhint %}

{% hint style="info" %}

### Code:-1015  TOO\_MANY\_ORDERS

msg：Too many orders. Please reduce the number of your orders

Reason：The order quantity exceeds the maximum quantity limit
{% endhint %}

{% hint style="info" %}

### Code:-1016  SERVICE\_SHUTTING\_DOWN

msg：服务器下线

Reason：This service is no longer available.
{% endhint %}

{% hint style="info" %}

### Code:-1017  NO\_CONTENT\_TYPE

msg：我们建议在所有的请求头附加Content-Type, 并设置成application/json

Reason：We recommend attaching Content-Type to all request headers and setting it to application/json
{% endhint %}

{% hint style="info" %}

### Code:-1020  UNSUPPORTED\_OPERATION

msg：不支持此操作

Reason：This operation is not supported.
{% endhint %}

{% hint style="info" %}

### Code:-1021  INVALID\_TIMESTAMP

msg：Invalid timestamp with too large time offset

Reason：The timestamp offset is too large. Timestamp for this request was 1000ms ahead of the server's time. Please check the difference between your local time and server time.
{% endhint %}

{% hint style="info" %}

### Code:-1022  INVALID\_SIGNATURE

msg：Invalid signature

Reason：Signature verification failed
{% endhint %}

{% hint style="info" %}

### Code:-1023 UNAUTHORIZED

msg：You are not authorized to execute this request. The request need to send timestamps, and we recommend appending X-CH-TS to all request headers

Reason：The X-CH-TS required for signature is not added to the header.
{% endhint %}

{% hint style="info" %}

### Code:-1024  UNAUTHORIZED

msg：You are not authorized to execute this request. The request needs to send sign, and we recommend appending X-CH-SIGN to all request headers

Reason：The X-CH-SIGN required for signature is not added to the header.
{% endhint %}

## 11XX - Request issues

{% hint style="warning" %}

### Code:-1100  ILLEGAL\_CHARS

msg：请求中存在非法字符

Reason：Illegal characters found in a parameter.
{% endhint %}

{% hint style="warning" %}

### Code:-1101   TOO\_MANY\_PARAMETERS&#x20;

msg：发送的参数太多

Reason：Too many parameters sent for this endpoint.
{% endhint %}

{% hint style="warning" %}

### Code:-1102  MANDATORY\_PARAM\_EMPTY\_OR\_MALFORMED

msg: Forced parameter XXX not sent, empty or incorrect format

Reason：The parameter is null, the required parameter not input or incorrect format of input parameters
{% endhint %}

{% hint style="warning" %}

### Code:-1103   UNKNOWN\_PARAM&#x20;

msg：发送了未知参数

Reason：Each request requires at least one parameter
{% endhint %}

{% hint style="warning" %}

### Code:-1104  UNREAD\_PARAMETERS

msg：并非所有发送的参数都被读取

Reason：Not all sent parameters were read; read '%s' parameter(s) but was sent '%s'.
{% endhint %}

{% hint style="warning" %}

### Code:-1105

msg：The parameter XXX is empty

Reason：The required parameter is empty
{% endhint %}

{% hint style="warning" %}

### Code:-1106  PARAM\_NOT\_REQUIRED

msg：不需要发送此参数

Reason：Parameter '%s' sent when not required.
{% endhint %}

{% hint style="warning" %}

### Code:-1111  BAD\_PRECISION

msg：精度超过此资产定义的最大值

Reason：Precision is over the maximum defined for this asset.
{% endhint %}

{% hint style="warning" %}

### Code:-1112

msg：There are no pending orders for trading pairs

Reason：The order that needs to be canceled does not exist
{% endhint %}

{% hint style="warning" %}

### Code:-1116 INVALID\_ORDER\_TYPE

msg：Invalid order type

Reason：Invalid orderType. In the current version , ORDER\_TYPE values is LIMIT or MARKET.
{% endhint %}

{% hint style="warning" %}

### Code:-1117   INVALID\_SIDE&#x20;

msg：Invalid buying or selling direction

Reason：Invalid side. ORDER\_SIDE values is BUY or SELL
{% endhint %}

{% hint style="warning" %}

### Code:-1121

msg: Invalid contract

Reason：Invalid symbol.
{% endhint %}

{% hint style="warning" %}

### Code:-1136   ORDER\_QUANTITY\_TOO\_SMALL

msg：订单数量小于最小值

Reason：Order volume lower than the minimum.
{% endhint %}

{% hint style="warning" %}

### Code:-1138   ORDER\_PRICE\_WAVE\_EXCEED

msg：The order price is outside the allowable range

Reason：Order price exceeds permissible range.
{% endhint %}

{% hint style="warning" %}

### Code:-1139  ORDER\_NOT\_SUPPORT\_MARKET&#x20;

msg：The pair does not support market trading

Reason：This trading pair does not support market trading
{% endhint %}

{% hint style="warning" %}

### Code:-1145

msg：The order status does not allow for cancellation

Reason：The order cannot be canceled
{% endhint %}

{% hint style="warning" %}

### Code:-1147   PRICE\_VOLUME\_PRESION\_ERROR

msg：价格或数量精度超过最大限制

Reason：Order price or quantity exceeds the maximum limit
{% endhint %}

## 2XXX - Other issues

{% hint style="info" %}

### Code:-2013   NO\_SUCH\_ORDER

msg：订单不存在

Reason：Order does not exist.
{% endhint %}

{% hint style="info" %}

### Code:-2015

msg：Invalid API key, IP or operation permission

Reason：signature or IP is incorrect
{% endhint %}

{% hint style="info" %}

### Code:-2016

msg：Transactions are frozen

Reason：The user's transaction is frozen
{% endhint %}

{% hint style="info" %}

### Code:-2017  balance\_not\_enough

msg：余额不足

Reason：Insufficient balance
{% endhint %}

{% hint style="info" %}

### Code:-2100

msg：Parameter error

Reason：Input wrong parameter or exist block in the parameter
{% endhint %}

{% hint style="info" %}

### Code:-2200

msg：Illegal IP

Reason：Not trusted IP
{% endhint %}

{% hint style="info" %}

### Code:35

msg：禁止下单(Forbidden to order)

Reason：User transactions may be restricted
{% endhint %}

***
