Rates
Use this method to obtain exchange rates.
GET[host]/api/v2/rates/{baseCurrency}/{quoteCurrency} |
Get an exchange rate for a currency pair
Use this method to obtain a current exchange rate for a specified currency pair.
Request
Header parameters:
Authorization: Bearer <access_token>
Path parameters:
- baseCurrency required
The alphabetic code of a base currency.
- quoteCurrency required
The alphabetic code of a quote currency.
GET[host]/api/v2/rates/{baseCurrency}/{quoteCurrency}
curl --location --request GET 'https://host.name/api/v2/rates/btc/usd' \
--header 'Authorization: Bearer <token>'
Response
- rate object
The details about an exchange rate.
Show object fields- value string
The exchange rate.
- scale integer
The number of decimal places displayed when representing amounts in a currency.
RESPONSE EXAMPLE
{
"scale": 14,
"value": "19117.65"
}