Get Currency Rates
Interface Description
- Path:
/client/common/currency-rates - Method:
GET - Description: Get the currently supported currencies and their exchange rates against the system's base currency. Members can use these rates to calculate currency exchanges.
Request Parameters
None
Request Example
GET /client/common/currency-rates
Response Parameters
| Parameter | Type | Description |
|---|---|---|
code | Number | Status code, 0 means success |
msg | String | Message |
data | Array | Contains exchange rate data |
data[i].currency | String | Currency code (e.g. USD, CNY, MYR) |
data[i].rate | Number | Exchange rate |
data[i].isBase | Boolean | Whether it is the base currency |
Response Example
json
{
"code": 0,
"msg": "Success",
"data": [
{
"currency": "USD",
"rate": 1.0,
"isBase": true
},
{
"currency": "CNY",
"rate": 7.2,
"isBase": false
}
]
}