Exchange rate query interface
Request address
- API Address (requestURI) : /openapi/v1/queryExchangeRate
Request parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
assetType | Integer | R | Asset type, [0: Cryptocurrency, 1: Fiat Currency] Defaults to 1: Fiat Currency |
baseCurrency | String | R | The length of the original currency cannot exceed 50 |
targetCurrency | String | O | The length of the target currency cannot exceed 50 |
Sample request
{
"assetType": 1,
"baseCurrency": "USD",
"targetCurrency": "CNY"
}
Response parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
exchangeRate | BigDecimal | R | Exchange Rates |
Sample response
{
"code": 200,
"msg": "success",
"data": {
"exchangeRate": 6.5
}
}