跳转到主要内容
GET
Get historical exchange rates
此端点处于封闭测试阶段。访问取决于是否已开通,可用日期取决于已保存的数据。
String
必填
Exchange Rates API 密钥。
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

示例: