API For Price Query
Introduction
If you want to define the price of the token, you need to provide the API according to this interface document.
If your token can obtain a quotation in the following ways, you can not provide this API. These include: Binance/Kucoin/Mexc/OKX/Gate.
API Definition
Path: GET API defined by merchant
Head 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 |
Body Parameters:
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
crypto | Y | string | Crypto for querying the price |
Format of the response:
0000-success
9999-fail
Success:
{
"data": {
"price": "454.46585",//usdt
"networkList": [
{
"network": "ONQ",
"networkFee": "4.659" //usdt
},
{
"network": "YIIW",
"networkFee": "6.82733"
}
]
},
"success": true,
"returnCode": "0000",
"returnMsg": "tygmwt",
}
Fail:
{
"data": null,
"success": false,
"returnCode": "9999",
"returnMsg": "ruenxecpowswbbprxhwjty"
}
Updated about 2 months ago