Skip to main content

Error code

Error code Example

Every endpoint has the potential for abnormalities.

The following is the error code information that the endpoint might return

codedescription
0Operate succeed
9999Public abnormal
500Internal error
501System busy
401Unauthorized
402Api_key expired
406Accessed IP is not in the whitelist
506Unknown source of request
510Excessive frequency of requests
511Endpoint inaccessible
513Invalid request(for open api serves time more or less than 10s)
600Parameter error
601Data decoding error
602Verify failed
603Repeated requests
701Account read permission is required
702Account modify permission is required
703Trade information read permission is required
704Transaction information modify permission is required
1000Account does not exist
1001Contract does not exist
1002Contract not activated
1003Error in risk limit level
1004Amount error
2001Wrong order direction
2002Wrong opening type
2003Overpriced to pay
2004Low-price for selling
2005Balance insufficient
2006Leverage ratio error
2007Order price error
2008The quantity is insufficient
2009Positions do not exist or have been closed
2011Order quantity error
2013Cancel orders over maximum limit
2014The quantity of batch order exceeds the limit
2015Price or quantity accuracy error
2016Trigger volume over the maximum
2018Exceeding the maximum available margin
2019There is an active open position
2021The single leverage is not consistent with the existing position leverage
2022Wrong position type
2023There are positions over the maximum leverage
2024There are orders with leverage over the maximum
2025The holding positions is over the maximum allowable positions
2026Modification of leverage is not supported for cross
2027There is only one cross or isolated in the same direction
2028The maximum order quantity is exceeded
2029Error order type
2030External order ID is too long (Max. 32 bits )
2031The allowable holding position exceed the current risk limit
2032Order price is less than long position force liquidate price
2033Order price is more than short position force liquidate price
2034The batch query quantity limit is exceeded
2035Unsupported market price tier
3001Trigger price type error
3002Trigger type error
3003Executive cycle error
3004Trigger price error
4001Unsupported currency
2036The orders more than the limit, please contact customer service
2037Frequent transactions, please try it later
2038The maximum allowable position quantity is exceeded, please contact customer service!
5001The take-price and the stop-loss price cannot be none at the same time
5002The Stop-Limit order does not exist or has closed
5003Take-profit and stop-loss price setting is wrong
5004The take-profit and stop-loss order volume is more than the holding positions can be liquidated
6001Trading forbidden
6002Open forbidden
6003Time range error
6004The trading pair and status should be fill in
6005The trading pair is not available