Перейти к основному содержанию
GET
Get historical exchange rates
Эндпоинт находится в закрытой бете. Доступ зависит от подключения к бете, а доступные даты — от сохранённых данных.
String
обязательно
Ключ API Exchange Rates.
String
обязательно
Базовая валюта, код ISO 4217.
String
обязательно
Дата в формате YYYY-MM-DD.
String
Необязательные коды целевых валют ISO 4217 через запятую. Без параметра возвращаются все доступные курсы.
Ответ содержит базовую валюту, дату и доступные курсы целевых валют.

Параметры запроса

api_key
string
обязательно

Your unique API key for authentication

base
string
по умолчанию:EUR

The base currency used to get the latest exchange rate(s) for. Uses the ISO 4217 currency standard

target
string

The target currency or currencies to get the exchange rate of versus the base currency. Multiple currencies should be separated by commas. If not specified, all available currencies will be returned.

date
string<date>
обязательно

The historical date you'd like to get rates from, in the format of YYYY-MM-DD

Ответ

Successful response

base
string
обязательно

The base currency used to get the exchange rates

Пример:

"EUR"

date
string<date>
обязательно

The date the currencies were pulled from

Пример:

"2024-01-01"

exchange_rates
object
обязательно

A JSON Object containing each of the target currency as the key and its exchange rate versus the base currency as that key's value

Пример: