错误代码
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 response was received from the message bus. Execution status unknown.
- 从消息总线收到意外的响应。执行状态未知。
-1007 TIMEOUT
- Timeout waiting for response from backend server. Send status unknown; execution status unknown.
- 等待后端服务器响应超时。 发送状态未知; 执行状态未知。
-1014 UNKNOWN_ORDER_COMPOSITION
- Unsupported order combination.
- 不支持当前的下单参数组合
-1015 TOO_MANY_ORDERS
- Too many new orders.
- 新订单太多。
- Too many new orders; current limit is %s orders per %s. * 新订单太多; 当前限制为每%s %s个订单。
-1016 SERVICE_SHUTTING_DOWN
- This service is no longer available.
- 该服务不可用。
-1020 UNSUPPORTED_OPERATION
- This operation is not supported.
- 不支持此操作。
-1021 INVALID_TIMESTAMP
- Timestamp for this request is outside of the recvWindow.
- 此请求的时间戳在recvWindow之外。
- Timestamp for this request was 1000ms ahead of the server's time. * 此请求的时间戳比服务器时间提前1000毫秒。
-1022 INVALID_SIGNATURE
- Signature for this request is not valid.
- 此请求的签名无效。
-1023 START_TIME_GREATER_THAN_END_TIME
- Start time is greater than end time.
- 参数里面的开始时间在结束时间之后
-1099 NOT_FOUND
- Not found, unauthenticated, or unauthorized.
11xx - Request issues
-1100 ILLEGAL_CHARS
- Illegal characters found in a parameter.
- 在参数中发现非法字符。
- Illegal characters found in parameter '%s'; legal range is '%s'.
- 在参数
%s
中发现非法字符; 合法范围是%s
。
-1101 TOO_MANY_PARAMETERS
- Too many parameters sent for this endpoint.
- 为此端点发送的参数太多。
- Too many parameters; expected '%s' and received '%s'.
- 参数太多;预期为
%s
并收到了%s
。 - Duplicate values for a parameter detected. * 检测到的参数值重复。
-1102 MANDATORY_PARAM_EMPTY_OR_MALFORMED
- A mandatory parameter was not sent, was empty/null, or malformed.
- 未发送强制性参数,该参数为空/空或格式错误。
- Mandatory parameter '%s' was not sent, was empty/null, or malformed.
* 强制参数
%s
未发送,为空/空或格式错误。 - Param '%s' or '%s' must be sent, but both were empty/null!
* 必须发送参数
%s
或%s
,但两者均为空!
-1103 UNKNOWN_PARAM
- An unknown parameter was sent.
- 发送了未知参数。
-1104 UNREAD_PARAMETERS
- Not all sent parameters were read.
- 并非所有发送的参数都被读取。
- Not all sent parameters were read; read '%s' parameter(s) but was sent '%s'.
- 并非所有发送的参数都被读取; 读取了
%s
参数,但被发送了%s
。
-1105 PARAM_EMPTY
- A parameter was empty.
- 参数为空。
- Parameter '%s' was empty.
- 参数
%s
为空。
-1106 PARAM_NOT_REQUIRED
- A parameter was sent when not required.
- 发送了不需要的参数。
- Parameter '%s' sent when not required.
- 发送了不需要参数
%s
。
-1108 BAD_ASSET
- Invalid asset.
- 资产不正确
-1109 BAD_ACCOUNT
- Invalid account.
- 非有效账户
-1110 BAD_INSTRUMENT_TYPE
- Invalid symbolType.
- 交易对不正确
-1111 BAD_PRECISION
- Precision is over the maximum defined for this asset.
- 精度超过为此资产定义的最大值。
-1112 NO_DEPTH
- No orders on book for symbol.
- 交易对没有挂单。
-1113 WITHDRAW_NOT_NEGATIVE
- Withdrawal amount must be negative.
- 提现数量需要为负
-1114 TIF_NOT_REQUIRED
- TimeInForce parameter sent when not required.
- 发送的
TimeInForce
参数不需要。
-1115 INVALID_TIF
- Invalid timeInForce.
- 无效的
timeInForce
-1116 INVALID_ORDER_TYPE
- Invalid orderType.
- 无效订单类型。
-1117 INVALID_SIDE
- Invalid side.
- 无效买卖方向。
-1118 EMPTY_NEW_CL_ORD_ID
- New client order ID was empty.
- 新的客户订单ID为空。
-1119 EMPTY_ORG_CL_ORD_ID
- Original client order ID was empty.
- 客户自定义的订单ID为空。
-1120 BAD_INTERVAL
- Invalid interval.
- 无效时间间隔。
-1121 BAD_SYMBOL
- Invalid symbol.
- 无效的交易对。
-1122 INVALID_SYMBOL_STATUS
- Invalid symbol status.
- 交易对状态不正确。
-1125 INVALID_LISTEN_KEY
- This listenKey does not exist.
- 此
listenKey
不存在。建议重新使用POST /fapi/v1/listenKey
生成listenKey
-1126 ASSET_NOT_SUPPORTED
- This asset is not supported.
- 不支持该资产
-1127 MORE_THAN_XX_HOURS
- Lookup interval is too big.
- 查询间隔太大。
- More than %s hours between startTime and endTime.
- 从开始时间到结束时间之间超过
%s
小时。
-1128 OPTIONAL_PARAMS_BAD_COMBO
- Combination of optional parameters invalid.
- 可选参数组合无效。
-1130 INVALID_PARAMETER
- Invalid data sent for a parameter.
- 发送的参数为无效数据。
- Data sent for parameter '%s' is not valid.
- 发送参数
%s
的数据无效。
-1136 INVALID_NEW_ORDER_RESP_TYPE
- Invalid newOrderRespType.
- 无效的 newOrderRespType。
20xx - Processing Issues
-2010 NEW_ORDER_REJECTED
- NEW_ORDER_REJECTED
- 新订单被拒绝
-2011 CANCEL_REJECTED
- CANCEL_REJECTED
- 取消订单被拒绝
-2012 CANCEL_ALL_FAIL
- Batch cancel failure.
- 批量取消失败
-2013 NO_SUCH_ORDER
- Order does not exist.
- 订单不存在。