Exchange rate series
Daily closing exchange-rate history for a currency pair. Optionally limit the look-back window or return only data before a given date.
Authorizations
Your HayInsights API key (prefixed apk_). Create and manage keys in the
HayInsights dashboard (Account → API keys).
Send it in the X-API-Key header on every request to /openapi/v1/*.
Which data domains you may access and your request quota are both governed by
the subscription plan attached to the key — see the Plans & features and
Rate limits guides.
Query Parameters
Base currency code.
"USD"
Quote currency code.
"JPY"
Look-back window.
| Value | Description |
|---|---|
1M | Last 1 month |
3M | Last 3 months |
6M | Last 6 months |
1Y | Last 1 year |
3Y | Last 3 years |
5Y | Last 5 years |
10Y | Last 10 years |
20Y | Last 20 years |
1M, 3M, 6M, 1Y, 3Y, 5Y, 10Y, 20Y "1Y"
Return only observations dated before this date.
"2024-01-01"
Response
Closing exchange-rate series for the pair.
Standard success envelope shared by every endpoint. Each operation's response
wrapper extends this (via allOf) and adds a typed data property.