Pri-openapi
  • 中文文档
    • 文档说明
    • 返回码类型
    • 枚举类型
    • 现货交易
    • 合约交易
    • Websocket推送
    • SDK开发库
    • 常见问题
  • OpenApi Doc
    • Documentation description
    • Return Code Type
    • Enum Type
    • Spot Trading API
    • Futures Trading API
    • Websocket
    • Official SDK
    • Common Problem
Powered by GitBook
On this page
  • 10XX - General Server or Network issues
  • 11XX - Request issues
  • 2XXX - Other issues
  1. OpenApi Doc

Return Code Type

The describe and reason of exception code


  • 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

Code:-1000 UNKNOWN

msg:An unknown error occurred while processing the request

Reason:The wrong input parameter symbol name or input wrong contract name

Code:-1001 DISCONNECTED

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

Reason:Internal error; unable to process your request. Please try again.

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.

Code:-1003 TOO_MANY_REQUESTS

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

Reason:Requests exceed the limit too frequently.

Code:-1004 NO_THIS_COMPANY

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

Reason:You are not authorized to execute this request. User not exit Company

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.

Code:-1007 TIMEOUT

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

Reason:Timeout waiting for response from backend server. Send status unknown; execution status unknown.

Code:-1014 UNKNOWN_ORDER_COMPOSITION

msg:不支持的订单组合

Reason:Unsupported order combination.

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

Code:-1016 SERVICE_SHUTTING_DOWN

msg:服务器下线

Reason:This service is no longer available.

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

Code:-1020 UNSUPPORTED_OPERATION

msg:不支持此操作

Reason:This operation is not supported.

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.

Code:-1022 INVALID_SIGNATURE

msg:Invalid signature

Reason:Signature verification failed

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.

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.

11XX - Request issues

Code:-1100 ILLEGAL_CHARS

msg:请求中存在非法字符

Reason:Illegal characters found in a parameter.

Code:-1101 TOO_MANY_PARAMETERS

msg:发送的参数太多

Reason:Too many parameters sent for this endpoint.

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

Code:-1103 UNKNOWN_PARAM

msg:发送了未知参数

Reason:Each request requires at least one parameter

Code:-1104 UNREAD_PARAMETERS

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

Reason:Not all sent parameters were read; read '%s' parameter(s) but was sent '%s'.

Code:-1105

msg:The parameter XXX is empty

Reason:The required parameter is empty

Code:-1106 PARAM_NOT_REQUIRED

msg:不需要发送此参数

Reason:Parameter '%s' sent when not required.

Code:-1111 BAD_PRECISION

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

Reason:Precision is over the maximum defined for this asset.

Code:-1112

msg:There are no pending orders for trading pairs

Reason:The order that needs to be canceled does not exist

Code:-1116 INVALID_ORDER_TYPE

msg:Invalid order type

Reason:Invalid orderType. In the current version , ORDER_TYPE values is LIMIT or MARKET.

Code:-1117 INVALID_SIDE

msg:Invalid buying or selling direction

Reason:Invalid side. ORDER_SIDE values is BUY or SELL

Code:-1121

msg: Invalid contract

Reason:Invalid symbol.

Code:-1136 ORDER_QUANTITY_TOO_SMALL

msg:订单数量小于最小值

Reason:Order volume lower than the minimum.

Code:-1138 ORDER_PRICE_WAVE_EXCEED

msg:The order price is outside the allowable range

Reason:Order price exceeds permissible range.

Code:-1139 ORDER_NOT_SUPPORT_MARKET

msg:The pair does not support market trading

Reason:This trading pair does not support market trading

Code:-1145

msg:The order status does not allow for cancellation

Reason:The order cannot be canceled

Code:-1147 PRICE_VOLUME_PRESION_ERROR

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

Reason:Order price or quantity exceeds the maximum limit

2XXX - Other issues

Code:-2013 NO_SUCH_ORDER

msg:订单不存在

Reason:Order does not exist.

Code:-2015

msg:Invalid API key, IP or operation permission

Reason:signature or IP is incorrect

Code:-2016

msg:Transactions are frozen

Reason:The user's transaction is frozen

Code:-2017 balance_not_enough

msg:余额不足

Reason:Insufficient balance

Code:-2100

msg:Parameter error

Reason:Input wrong parameter or exist block in the parameter

Code:-2200

msg:Illegal IP

Reason:Not trusted IP

Code:35

msg:禁止下单(Forbidden to order)

Reason:User transactions may be restricted


PreviousDocumentation descriptionNextEnum Type

Last updated 1 year ago