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.
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 | 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 24 days ago
