Skip to content

FX endpoint

Official reference rates

Central-bank fixings and session-close reference rates, the official rate for valuation and settlement.

GET/v1/fx/reference-rates/{base}/{quote}
Individual API key required

An active Individual subscription and API key are required for every request.

5Routes
20Parameters
JSONResponse
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://api.fxmacrodata.com/v1/fx/reference-rates/eur/usd"

What it can do

5 routes in this endpoint

GET/v1/fx/reference-rates/{base}/{quote}

Get timestamped official FX reference rates

Returns official FX reference rates as published by each source, one row per source observation. Sources fix at different times of day (for example the ECB at 14:10 CET and the Federal Reserve H.10 at noon New York time), so one date can carry several rows for a pair, including inverse and cross-derived rows. Each row's `timestamp_utc`, `timestamp_type` and `source` identify which fix it is. `coverage.sources` lists every contributing source with its row count, date range and usual UTC fix times. For a single-fix daily series, pass `source` (and `native_only=true` to exclude derived rows).

GET/v1/fx/source-universe

List public FX reference-rate pair universe

Use to inspect the public pair/source universe before requesting a reference-rate series.

GET/v1/fx/sources

List public FX reference-rate sources

Use to list the official FX reference-rate sources available through FXMacroData.

GET/v1/fx/intraday-reference-rates/{base}/{quote}

Get subscriber intraday FX reference rates

Use for intraday official reference-rate observations ordered by source observation time.

GET/v1/fx/session-rates/{base}/{quote}

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.

Reference

Parameters and response fields

GET /v1/fx/reference-rates/{base}/{quote} Get timestamped official FX reference rates
Individual API key required

An active Individual subscription and API key are required for every request.

Returns official FX reference rates as published by each source, one row per source observation. Sources fix at different times of day (for example the ECB at 14:10 CET and the Federal Reserve H.10 at noon New York time), so one date can carry several rows for a pair, including inverse and cross-derived rows. Each row's timestamp_utc, timestamp_type and source identify which fix it is. coverage.sources lists every contributing source with its row count, date range and usual UTC fix times. For a single-fix daily series, pass source (and native_only=true to exclude derived rows).

Parameters

NameInTypeDetails
baseRequired path string Base currency code
quoteRequired path string Quote currency code
date query string Single reference date YYYY-MM-DD. Overrides start_date/end_date.
start_date query string 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_date query string 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.
source query string Optional source id filter, for example ecb_eurofxref_daily.
timestamp_type query string Optional timestamp type filter, for example fixing or published.
native_only query boolean Return only rows published directly for the requested pair, excluding inverse and cross-derived rows. Default: false.
include_source_legs query boolean Include derivation source legs when a rate is inverted or crossed. Default: true.
order query string Result ordering. Allowed: timestamp_asc, timestamp_desc, date_asc, date_desc. Default: timestamp_asc.
limit query integer Maximum rows to return. Maximum 100. Default: 100.
offset query integer Number of rows to skip. Default: 0.
page query integer One-based page number.
dataset_version query string Pin first-page content version; changed history returns 409.
api_key query string 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.
lang query string Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English.

Response fields

FieldTypeDetails
basestring
quotestring
start_datestring
end_datestring
timestamp_basisstring
source_policyobjectRedistribution rules governing which rows the public endpoints serve.
source_policy.public_data_policystring
source_policy.request_time_upstream_fetchesbooleanWhether serving a request contacts the upstream publisher. Always false: responses come from FXMacroData's collected dataset.
source_policy.value_fieldstring
source_policy.legacy_daily_forex_value_fieldstring
paginationobjectOffset pagination state for one page of results.
pagination.limitinteger
pagination.offsetinteger
pagination.returned_countinteger
pagination.total_countinteger
pagination.has_moreboolean
pagination.next_offsetinteger
pagination.page_includes_latest_availableboolean
data[]object[]
data[].datestring
data[].reference_datestring
data[].basestring
data[].quotestring
data[].pairstring
data[].ratenumber
data[].timestamp_utcstring
data[].timestamp_typestring
data[].fixing_time_utcstring
data[].published_at_utcstring
data[].time_precisionstring
data[].sourceobjectHow one observation was sourced.
data[].source.source_pairstring
data[].source.is_derivedboolean
data[].source.derived_from_source_legsboolean
data[].source.derivation_methodstring
data[].source.pair_consistency_checkstring

Full schema in the API reference

GET /v1/fx/source-universe List public FX reference-rate pair universe
Always free

No API key required.

Parameters

NameInTypeDetails
currency query string Optional currency filter, for example USD.
source query string Optional source id filter, for example ecb_eurofxref_daily.
lang query string Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English.

Response fields

FieldTypeDetails
source_policyobjectRedistribution rules governing which rows the public endpoints serve.
source_policy.public_data_policystring
source_policy.request_time_upstream_fetchesbooleanWhether serving a request contacts the upstream publisher. Always false: responses come from FXMacroData's collected dataset.
source_policy.value_fieldstring
source_policy.legacy_daily_forex_value_fieldstring
currencystring
sourcestring
data[]object[]
data[].sourceobjectOne official FX reference-rate source.
data[].source.idstring
data[].source.namestring
data[].source.authority_typestring
data[].source.country_or_areastring
data[].source.urlstring
data[].source.attribution_textstring
data[].source.tierstring
data[].source.is_officialboolean
data[].source.is_aggregatorboolean
data[].source.default_timezonestring
data[].source.publication_frequencystring
data[].source.native_pairs[]string[]Every pair the authority publishes, as documentation of the source. Not a list of requestable pairs; see served_pairs.
data[].source.native_pair_countinteger
data[].source.served_pairs[]string[]The pairs from this source that the public FX endpoints serve. Only these pairs can be requested; a pair listed in native_pairs but not here returns no rows.
data[].source.served_pair_countinteger
data[].source.serves_public_databooleanTrue when at least one pair from this source is served by the public FX endpoints (served_pair_count > 0). False means the source is listed for provenance only and no data from it can be requested.
data[].source.coverage_notestring
data[].source.source_universe_endpointstring
data[].pair_countinteger
data[].pairs[]object[]
data[].pairs[].pairstring
data[].pairs[].availabilitystring
data[].pairs[].anchorstring

Full schema in the API reference

GET /v1/fx/sources List public FX reference-rate sources
Always free

No API key required.

Lists the official FX reference-rate sources and the pairs each one publishes. native_pairs documents what the authority publishes; only served_pairs are available from the public FX endpoints. Sources with serves_public_data: false (an empty served_pairs) are listed for provenance only and return no data. Use /v1/fx/source-universe for the requestable pair universe.

Parameters

NameInTypeDetails
lang query string Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English.

Response fields

FieldTypeDetails
source_policyobjectRedistribution rules governing which rows the public endpoints serve.
source_policy.public_data_policystring
source_policy.request_time_upstream_fetchesbooleanWhether serving a request contacts the upstream publisher. Always false: responses come from FXMacroData's collected dataset.
source_policy.value_fieldstring
source_policy.legacy_daily_forex_value_fieldstring
sources[]object[]
sources[].idstring
sources[].namestring
sources[].authority_typestring
sources[].country_or_areastring
sources[].urlstring
sources[].attribution_textstring
sources[].tierstring
sources[].is_officialboolean
sources[].is_aggregatorboolean
sources[].default_timezonestring
sources[].publication_frequencystring
sources[].native_pairs[]string[]Every pair the authority publishes, as documentation of the source. Not a list of requestable pairs; see served_pairs.
sources[].native_pair_countinteger
sources[].served_pairs[]string[]The pairs from this source that the public FX endpoints serve. Only these pairs can be requested; a pair listed in native_pairs but not here returns no rows.
sources[].served_pair_countinteger
sources[].serves_public_databooleanTrue when at least one pair from this source is served by the public FX endpoints (served_pair_count > 0). False means the source is listed for provenance only and no data from it can be requested.
sources[].coverage_notestring
sources[].source_universe_endpointstring

Full schema in the API reference

GET /v1/fx/intraday-reference-rates/{base}/{quote} Get subscriber intraday FX reference rates
Individual API key required

An active Individual subscription and API key are required for every request.

Return subscriber-only timestamped intraday FX reference rates.

Parameters

NameInTypeDetails
baseRequired path string Base currency code
quoteRequired path string Quote currency code
start_time query date-time Inclusive RFC 3339 timestamp. Defaults to 24 hours before end_time.
end_time query date-time Inclusive RFC 3339 source timestamp. Defaults to the current time.
api_key query string 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.
lang query string Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English.

Response fields

FieldTypeDetails
pairstring
start_timestring
end_timestring
data[]object[]
data[].timestampstring
data[].pricenumber
data[].reference_datestring
data[].timestamp_typestring
data[].sourceobjectOne official FX reference-rate source.
data[].source.idstring
data[].source.namestring
data[].source.authority_typestring
data[].source.country_or_areastring
data[].source.urlstring
data[].source.attribution_textstring
data[].source.tierstring
data[].source.is_officialboolean
data[].source.is_aggregatorboolean
data[].source.default_timezonestring
data[].source.publication_frequencystring
data[].source.native_pairs[]string[]Every pair the authority publishes, as documentation of the source. Not a list of requestable pairs; see served_pairs.
data[].source.native_pair_countinteger
data[].source.served_pairs[]string[]The pairs from this source that the public FX endpoints serve. Only these pairs can be requested; a pair listed in native_pairs but not here returns no rows.
data[].source.served_pair_countinteger
data[].source.serves_public_databooleanTrue when at least one pair from this source is served by the public FX endpoints (served_pair_count > 0). False means the source is listed for provenance only and no data from it can be requested.
data[].source.coverage_notestring
data[].source.source_universe_endpointstring
data[].source_pairstring
data[].derivation_methodstring

Full schema in the API reference

GET /v1/fx/session-rates/{base}/{quote} Get official FX session-close reference rates
Individual API key required

An active Individual subscription and API key are required for every request.

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.

Parameters

NameInTypeDetails
baseRequired path string Base currency code
quoteRequired path string Quote currency code
sessionRequired query string 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).
date query string Single reference date YYYY-MM-DD. Overrides start_date/end_date.
start_date query string 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_date query string 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.
order query string Result ordering. Allowed: timestamp_asc, timestamp_desc, date_asc, date_desc. Default: date_asc.
limit query integer Maximum rows to return. Maximum 100. Default: 100.
offset query integer Number of rows to skip. Default: 0.
page query integer One-based page number.
dataset_version query string Pin first-page content version; changed history returns 409.
api_key query string 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.
lang query string Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English.

Response fields

FieldTypeDetails
basestring
quotestring
sessionstring
start_datestring
end_datestring
source_policyobjectRedistribution rules governing which rows the public endpoints serve.
source_policy.public_data_policystring
source_policy.request_time_upstream_fetchesbooleanWhether serving a request contacts the upstream publisher. Always false: responses come from FXMacroData's collected dataset.
source_policy.value_fieldstring
source_policy.legacy_daily_forex_value_fieldstring
paginationobjectOffset pagination state for one page of results.
pagination.limitinteger
pagination.offsetinteger
pagination.returned_countinteger
pagination.total_countinteger
pagination.has_moreboolean
pagination.next_offsetinteger
pagination.page_includes_latest_availableboolean
data[]object[]
data[].datestring
data[].reference_datestring
data[].basestring
data[].quotestring
data[].pairstring
data[].ratenumber
data[].timestamp_utcstring
data[].timestamp_typestring
data[].fixing_time_utcstring
data[].published_at_utcstring
data[].time_precisionstring
data[].sourceobjectHow one observation was sourced.
data[].source.source_pairstring
data[].source.is_derivedboolean
data[].source.derived_from_source_legsboolean
data[].source.derivation_methodstring
data[].source.pair_consistency_checkstring

Full schema in the API reference

Works well with

Endpoints people use alongside Official reference rates

The whole API

All 24 endpoint guides

Open the endpoint map

AI Answer-Ready

Key Facts

Page
FX Reference Rates
Section
Documentation
Canonical URL
https://fxmacrodata.com/documentation/endpoints/fx-reference-rates
Source
FXMacroData editorial and official publisher references
Last Updated
See page metadata

Provenance And Trust

Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.

Quick Q&A

What is this page about? This page explains FX Reference Rates with directly usable context for trading, research, and API workflows.

What source should be cited? Use the canonical URL and the listed source field; cite official publisher references when available.

How fresh is this content? The last updated value above reflects the page metadata or latest available data timestamp.

Can this be used in AI assistants? Yes. This section is intentionally structured for retrieval and citation in chat assistants.

Prompt Packs

Use these in ChatGPT, Claude, Gemini, Mistral, Perplexity, or Grok for consistent source-aware outputs.