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:

ElementMandatoryData TypeRemarks
appIdYstringPartner unique ID
timestampYstringUTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes
signYstringSHA1(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:

ElementMandatoryData TypeRemarks
cryptoYstringCrypto 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:

returnCodeRemarks
0000success
9999failure