Skip to main content

Errordescription

Error Description

1. If the httpStatusCode equals 400, it means there is a problem with the basic parameters of the interface. For example, if a float is required to pass a string, then the business status code = 1.

2. If httpStatusCode equals 500, it means there is a server error; in this case, the business status code is 2.

httpStatusCodecodemsg
4001Parameter error
5002Internal Server Error
5002server is busy, please try again later

3. If httpStatusCode equals 200, it means the server has processed the request correctly; if the status code is 1, the request parameters are incorrect.

4. If httpStatusCode equals 200 and the business status code is 0, the request is successful;

httpStatusCodecodemsg
2001Incorrect request parameters
2000success
Calculate exchange recv
POST
/openapi/order/calculate

The following are possible errors that this interface may encounter in scenario 3:

codemsgdata
1from quantity too small { "max_from_quantity":52980, "min_from_quantity":31.78908998, }
1from quantity too large{"max_from_quantity":52980, "min_from_quantity":31.78908998}
1from assets not found--
1from assets disabled--
1to assets not found--
1to assets disabled--
Place order
POST
/openapi/order/place

The following are possible errors for this interface:

codemsgdata
1from quantity too small{"max_from_quantity":52980,"min_from_quantity":31.78908998}
1from quantity too large{"max_from_quantity":52980,"min_from_quantity":31.78908998}
1from assets not found--
1from assets disabled--
1to assets not found--
1to assets disabled--
1invalid to address(At least one receiving address in the order is invalid.)--
1calc_id parameters do not match(Send)--
1calc_id to_address parameters do not match(receive)--
1calc_id invalid or expired--
1calc_id only used for fixed exchange mode--