API For Price Query
Introduction
Custom Token Pricing:
If you wish to set a custom price for your token, please provide an API according to the example below and ensure it returns the required data in the specified format.
Exchange Token Pricing:
If your token is supported by any of the following exchanges for price retrieval, this API is not required:
Binance, KuCoin, MEXC, OKX, Gate.
API Description
Request Method: GET
Request Path:API defined by merchant
Request Parameters
Header Parameters:
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
appId | Y | string | Partner unique ID |
timestamp | Y | string | UTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes |
sign | Y | string | SHA1(appId + appSecret + timestamp), perform SHA1 hash calculation on the concatenated string of the three parameters to generate hexadecimal characters,the sign method can refer here |
URL Parameters:
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
crypto | Y | string | Crypto for querying the price |
Response Parameter Example (Success):
{
"success": true,
"returnCode": "0000",
"returnMsg": "",
"extend": "",
"data": {
"price": "0.0499",
"networkList": [
{
"network": "MXT",
"networkFee": "0.0001"
},
{
"network": "BSC",
"networkFee": "0.0001"
}
]
}
}
Response Parameter Example (Fail):
{
"success": false,
"returnCode": "9999",
"returnMsg": "Invalid request",
"extend": "",
"data": ""
}
ReturnCode:
returnCode | Remarks |
---|---|
0000 | success |
9999 | failure |
Updated about 1 month ago