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

# Get official FX session-close reference rates

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

## 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

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.

## Path parameters

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

## Query parameters

- `session` string, required: 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` 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.
- `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

- FxSessionRateResponse
  - `base` string, required
  - `quote` string, required
  - `session` string, required
  - `start_date` string, required
  - `end_date` 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` FxSessionRatePoint[], 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
    - `session` string, nullable
    - `session_close_utc` string, nullable
    - `selected_timestamp_utc` string, nullable
    - `selected_source_timestamp_utc` string, nullable
    - `selection_rule` string, 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)
