错误代码
error JSON payload:
{
"code":-1121,
"msg":"Invalid symbol."
}
错误由两部分组成:错误代码和消息。 代码是通用的,但是消息可能会有所不同。
10xx - 常规服务器或网络问题
-1000 UNKNOWN
- An unknown error occured while processing the request.
- 处理请求时发生未知错误。
-1001 DISCONNECTED
- Internal error; unable to process your request. Please try again.
- 内部错误; 无法处理您的请求。 请再试一次.
-1002 UNAUTHORIZED
- You are not authorized to execute this request.
- 您无权执行此请求。
-1003 TOO_MANY_REQUESTS
- Too many requests; current limit is %s requests per minute. Please use the websocket for live updates to avoid polling the API.
- 请求权重过多; 当前限制为每分钟%s请求权重。 请使用websocket进行实时更新,以避免轮询API。
- Way too many requests; IP banned until %s. Please use the websocket for live updates to avoid bans.
- 请求权重过多; IP被禁止,直到%s。 请使用websocket进行实时更新,以免被禁。
-1004 DUPLICATE_IP
- This IP is already on the white list
- IP地址已经在白名单
-1005 NO_SUCH_IP
- No such IP has been white listed
- 白名单上没有此IP地址
-1006 UNEXPECTED_RESP
- An unexpected 响应 was received from the message bus. Execution status unknown.
- 从消息总线收到意外的响应。执行状态未知。
-1007 TIMEOUT
- Timeout waiting for 响应 from backend server. Send status unknown; execution status unknown.
- 等待后端服务器响应超时。 发送状态未知; 执行状态未知。
-1014 UNKNOWN_ORDER_COMPOSITION
- Unsupported order combination.