Get official FX session-close reference rates
For each date, returns the latest timed official reference observation on that date at or before the selected session close: Sydney 17:00 Australia/Sydney, Tokyo 18:00 Asia/Tokyo, London 17:00 Europe/London or New York 17:00 America/New_York. It is not a market price observed at the close. Official fixes are published during European and New York hours, so the London and New York rows for a pair are often the same fix, and Sydney and Tokyo rows exist only on dates when a source published before that close. staleness_minutes on each row is the time between the selected observation and the close; check it and source before treating a row as a closing price. coverage.staleness_minutes summarises it for the request.
Request
- Base URL: https://api.fxmacrodata.com
- URL: https://api.fxmacrodata.com/v1/fx/session-rates/{base}/{quote}
- Auth: one of:
- none
- API key in header X-API-Key
- HTTP bearer
Path parameters
Base currency code
Required path parameter. Base currency code
Quote currency code
Required path parameter. Quote currency code
Query parameters
Session close: sydney (17:00 Australia/Sydney), tokyo (18:00 Asia/Tokyo), london (17:00 Europe/London) or new_york (17:00 America/New_York).
Required query parameter. Session close: sydney (17:00 Australia/Sydney), tokyo (18:00 Asia/Tokyo), london (17:00 Europe/London) or new_york (17:00 America/New_York).
Single reference date YYYY-MM-DD. Overrides start_date/end_date.
Optional query parameter. Single reference date YYYY-MM-DD. Overrides start_date/end_date.
Start reference date YYYY-MM-DD, inclusive. Without end_date the window runs through the latest available date (today, UTC); page through long histories with limit and offset or page.
Optional query parameter. Start reference date YYYY-MM-DD, inclusive. Without end_date the window runs through the latest available date (today, UTC); page through long histories with limit and offset or page.
End reference date YYYY-MM-DD, inclusive. Without start_date only this date is returned. With neither start_date nor end_date, today's (UTC) reference date is returned.
Optional query parameter. End reference date YYYY-MM-DD, inclusive. Without start_date only this date is returned. With neither start_date nor end_date, today's (UTC) reference date is returned.
Result ordering.
Optional query parameter. Result ordering.
Maximum rows to return. Maximum 100.
Optional query parameter. Maximum rows to return. Maximum 100.
Number of rows to skip.
Optional query parameter. Number of rows to skip.
One-based page number.
Optional query parameter. One-based page number.
Pin first-page content version; changed history returns 409.
Optional query parameter. Pin first-page content version; changed history returns 409.
Your Individual or Business API key
Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.