Skip to main content

Error codes

Errors consist of three parts: an error code and a codeText, another one is message. Codes are universal,but messages can vary.

Here is the error example:

{
"code": 1012,
"message": "Order Signature is invalid",
"codeText": "Invalid signature"
}

10xx - General Server or Network issues​

1010 UNAUTHORIZED_ERROR​

You are not authorized to execute this request.

1011 INVALID_TIMESTAMP_ERROR​

Timestamp for this request is outside of the recvWindow.

1012 INVALID_SIGNATURE_ERROR​

Signature for this request is not valid.

11xx - Request issues​

1110 BAD_ACCOUNT_ERROR​

Invalid account.

1111 BAD_PARAMS_ERROR​

Bad Params

1112 INVALID_MARKET_ERROR​

Invalid market.

1113 INVALID_TIME_PERIOD_ERROR​

Invalid time period

20xx - Processing Issues​

2010 INTERNAL_ERROR​

Internal error

2011 NO_SUCH_ORDER_ERROR​

Order does not exist.

2012 MARGIN_INSUFFICIENT_ERROR​

Margin is insufficient.

2013 MARKET_TRADING_NOT_ENABLED_ERROR​

The market trading is not enabled

2014 MARKET_TRADING_DISABLED_ERROR​

The market trading is disabled

2015 MARKET_DELISTED_ERROR​

The market is delisted

2016 INVALID_ORDER_ERROR​

The Order validate fail

2017 MAX_OPEN_ORDER_EXCEEDED_ERROR​

Open order count exceed limit

2018 DUPLICATED_ACCOUNT_ERROR​

duplicated Account

40xx - Filters and other Issues​

4010 PRICE_GREATER_THAN_MAX_PRICE_ERROR​

Price greater than max price.

4011 MAX_PRICE_LESS_THAN_MIN_PRICE_ERROR​

Max price less than min price.

4012 INVALID_ORDER_INFO_ERROR​

invalid info

4013 EXPOSURE_GREATER_THAN_MAX_ACCOUNT_LIMIT_ERROR​

Exceeded account exposure limits. The ACCOUNT_UPDATE event in the WebSocket information push contains the maximum amount that the current address can buy and sell in each market. This amount already includes the user's maximum position limit. Please verify the available amount when you meet this error. It is worth noting that even if an address has a sufficient margin when the exposure exceeds the system limit, it cannot continue to increase the leverage. If you have special needs, please get in touch with customer service to evaluate and increase the exposure limit.

4014 EXPOSURE_GREATER_THAN_MAX_PLATFORM_LIMIT_ERROR​

Exceeded platform exposure limits.

4015 EXPOSURE_GREATER_THAN_MAX_MARKET_LIMIT_ERROR​

Exceeded market exposure limits.

When the market reaches the Market Max Exposure limit, the entire market is no longer allowed to increase risk. At this point, the API will treat orders whose TimeInForce is POST_ONLY as maker orders, and orders with non-POST_ONLY types as taker orders. For maker orders, there are no restrictions. For taker orders, increasing the position direction will be prohibited.

4016 NOT_ALLOW_OPENING_POSITIONS_ERROR​

The market doesn't allow opening positions anymore.