Saltar para o conteúdo principal
GET
Get historical exchange rates
O endpoint está em beta fechada. O acesso e as datas disponíveis dependem da ativação e dos dados armazenados.
String
obrigatório
Chave da API Exchange Rates.
String
obrigatório
Moeda base como código ISO 4217.
String
obrigatório
Data no formato YYYY-MM-DD.
String
Moedas de destino opcionais como códigos ISO 4217 separados por vírgulas. Se omitido, devolve todas as taxas disponíveis.
A resposta inclui a moeda base, a data e as taxas disponíveis.

Parâmetros de consulta

api_key
string
obrigatório

Your unique API key for authentication

base
string
padrão: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>
obrigatório

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

Resposta

Successful response

base
string
obrigatório

The base currency used to get the exchange rates

Exemplo:

"EUR"

date
string<date>
obrigatório

The date the currencies were pulled from

Exemplo:

"2024-01-01"

exchange_rates
object
obrigatório

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

Exemplo: