---
title: "Get timestamped official FX reference rates"
method: GET
path: "/v1/fx/reference-rates/{base}/{quote}"
tags: ["fx_markets"]
---

# Get timestamped official FX reference rates

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

## Request

- Base URL: `https://api.fxmacrodata.com`
- URL: `https://api.fxmacrodata.com/v1/fx/reference-rates/{base}/{quote}`
- Auth: one of:
  - none
  - API key in header `X-API-Key`
  - HTTP bearer

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).

## Path parameters

- `base` string, required: Base currency code
- `quote` string, required: Quote currency code

## Query parameters

- `date` string: Single reference date YYYY-MM-DD. Overrides start_date/end_date.
- `start_date` 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` 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` string: Optional source id filter, for example ecb_eurofxref_daily.
- `timestamp_type` string: Optional timestamp type filter, for example fixing or published.
- `native_only` boolean: Return only rows published directly for the requested pair, excluding inverse and cross-derived rows.
- `include_source_legs` boolean: Include derivation source legs when a rate is inverted or crossed.
- `order` 'timestamp_asc' | 'timestamp_desc' | 'date_asc' | 'date_desc': Result ordering.
- `limit` integer: Maximum rows to return. Maximum 100.
- `offset` integer: Number of rows to skip.
- `page` integer, nullable: One-based page number.
- `dataset_version` string, nullable: Pin first-page content version; changed history returns 409.
- `api_key` string: Your Individual or Business API key

## Response `200`

Successful Response

- FxReferenceResponse
  - `base` string, required
  - `quote` string, required
  - `start_date` string, required
  - `end_date` string, required
  - `timestamp_basis` string, required
  - `source_policy` FxSourcePolicy, required: Redistribution rules governing which rows the public endpoints serve.
    - `public_data_policy` string, nullable
    - `request_time_upstream_fetches` boolean, nullable: Whether serving a request contacts the upstream publisher. Always false: responses come from FXMacroData's collected dataset.
    - `value_field` string, nullable
    - `legacy_daily_forex_value_field` string, nullable
  - `pagination` object, required: Offset pagination state for one page of results.
    - `limit` integer, nullable
    - `offset` integer, nullable
    - `returned_count` integer, nullable
    - `total_count` integer, nullable
    - `has_more` boolean, nullable
    - `next_offset` integer, nullable
    - `page_includes_latest_available` boolean, nullable
  - `data` FxReferencePoint[], required
    - `date` string, required
    - `reference_date` string, required
    - `base` string, required
    - `quote` string, required
    - `pair` string, required
    - `rate` number, required
    - `timestamp_utc` string, nullable
    - `timestamp_type` string, nullable
    - `fixing_time_utc` string, nullable
    - `published_at_utc` string, nullable
    - `time_precision` string, nullable
    - `source` object: How one observation was sourced.
      - `source_pair` string, nullable
      - `is_derived` boolean, nullable
      - `derived_from_source_legs` boolean, nullable
      - `derivation_method` string, nullable
      - `pair_consistency_check` string, nullable
      - `source_legs` FxSourceLeg[], nullable
        - `pair` string, nullable
        - `source_pair` string, nullable
        - `storage_path` string, nullable: Retained for compatibility. Always null.
        - `stored_source` string, nullable: Retained for compatibility. Always null.
        - `source_provider` string, nullable
        - `source_name` string, nullable
        - `source_url` string, nullable
        - `source_frequency` string, nullable
        - `source_type` string, nullable
        - `is_derived` boolean, nullable
        - `derivation_method` string, nullable
        - `anchor_currency` string, nullable
        - `data_policy` string, nullable
        - `last_updated` string, nullable
        - `backfill_window` object, nullable
        - `source_legs` object[], nullable
    - `native_or_derived` string, nullable
    - `derivation_method` string, nullable
    - `source_pair` string, nullable
    - `source_legs` object[]
      - `pair` string, nullable
      - `source_pair` string, nullable
      - `storage_path` string, nullable: Retained for compatibility. Always null.
      - `stored_source` string, nullable: Retained for compatibility. Always null.
      - `source_provider` string, nullable
      - `source_name` string, nullable
      - `source_url` string, nullable
      - `source_frequency` string, nullable
      - `source_type` string, nullable
      - `is_derived` boolean, nullable
      - `derivation_method` string, nullable
      - `anchor_currency` string, nullable
      - `data_policy` string, nullable
      - `last_updated` string, nullable
      - `backfill_window` object, nullable
      - `source_legs` object[], nullable
    - `staleness_minutes` integer, nullable
  - `dataset_version` string, required
  - `coverage` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fxmacrodata/apis/fx-macrodata-api.md) · [All operations](https://skmtc.dev/fxmacrodata/apis/fx-macrodata-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fxmacrodata/apis/fx-macrodata-api/revisions/fadaa543b154?raw)
