Skip to content

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

ParameterTypeDescription
codeNumberStatus code, 0 means success
msgStringMessage
dataArrayContains exchange rate data
data[i].currencyStringCurrency code (e.g. USD, CNY, MYR)
data[i].rateNumberExchange rate
data[i].isBaseBooleanWhether 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
    }
  ]
}