Перейти до основного вмісту
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

Приклад: