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/