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
Show child attributes
例:
{ "EUR": 1, "USD": 0.85, "GBP": 0.75 }
⌘I
Get historical exchange rates
curl --request GET \ --url https://exchange-rates.cleariflow.com/v1/historical/