Live release feed
Sub-second macro releases for FX backtests
Point-in-time history
USD 25/month
开始免费试用

FX markets API

Intraday FX prices

Retrieve a point-in-time history of central-bank FX reference prices. Many observations are local-market end-of-day fixings, so you can use the rate published at the relevant close instead of one generic daily rate.

Reference price

Official published FX rate

Point in time

Published reference time in UTC

Best for

Valuation, reporting, charts, and research

Professional subscriber feature. An active subscription and API key are required for every intraday FX price request. View plans.

Endpoint

Use an inclusive UTC timestamp window. With no window parameters, the endpoint returns the most recent 24 hours.

GET https://api.fxmacrodata.com/fx/fixing-timeline/{base}/{quote}
curl "https://api.fxmacrodata.com/fx/fixing-timeline/eur/usd?start_time=2026-07-13T00%3A00%3A00Z&end_time=2026-07-14T00%3A00%3A00Z&api_key=YOUR_API_KEY"
ParameterRequiredUse
baseYesBase currency in the path, for example eur.
quoteYesQuote currency in the path, for example usd.
start_timeNoInclusive RFC 3339 UTC start of the chart window.
end_timeNoInclusive RFC 3339 UTC end of the chart window. Defaults to the current time.
api_keyYesActive Professional subscriber API key. A server-side client can instead use the X-API-Key header.

Python example

import requests

response = requests.get(
    "https://api.fxmacrodata.com/fx/fixing-timeline/eur/usd",
    params={
        "start_time": "2026-07-13T00:00:00Z",
        "end_time": "2026-07-14T00:00:00Z",
        "api_key": "YOUR_API_KEY",
    },
    timeout=30,
)
response.raise_for_status()
for point in response.json()["data"]:
    print(point["timestamp"], point["price"])

Chart-ready response

The response keeps its chart data in one small array. Map timestamp to the x-axis and price to the y-axis without additional field selection.

{
  "pair": "EUR/USD",
  "start_time": "2026-07-13T00:00:00Z",
  "end_time": "2026-07-14T00:00:00Z",
  "data": [
    {"timestamp": "2026-07-13T12:30:00Z", "price": 1.1424},
    {"timestamp": "2026-07-13T13:10:00Z", "price": 1.1427}
  ]
}

Response fields

FieldMeaning
pairThe requested currency pair.
start_timeThe inclusive UTC start of the returned window.
end_timeThe inclusive UTC end of the returned window.
dataChronologically ordered price points for the requested window.
timestampThe UTC time for the price point.
priceThe exchange rate for the requested pair.

Window behavior and availability

  • Without time parameters, the response covers the most recent 24 hours.
  • With an explicit UTC window, the response contains every available stored point within that inclusive period.
  • Business days, holidays, pair availability, and publication timing affect the number of records.
  • An empty data array means no point is available in that window. Do not fill missing periods by carrying a prior value forward.

Response handling

  • Price points are returned in ascending timestamp order.
  • Keep timestamps in UTC until display time; convert only in the presentation layer when a local zone is needed.
  • A malformed or reversed time window returns HTTP 422.
  • A missing or invalid Professional key returns HTTP 401 for protected pairs.

When to use intraday prices

Charts and dashboards

Draw a time-ordered price line without parsing metadata or reshaping rows.

Research and reporting

Compare price observations around macro events, policy decisions, and other defined UTC windows.

Historical comparisons

Request a prior window to build repeatable chart views, reports, or event-study inputs.

Use the intraday FX prices coverage page for an overview of currencies, pair availability, point density, and endpoint selection.

How it differs from session rates

Central-bank reference prices can be published on different local-market timetables. The intraday timeline returns every available point in the requested window, while the session-rate endpoint reports one rate for a selected Sydney, Tokyo, London, or New York session close.

Use this endpoint when you need the official reference price at a point in time, including local-market end-of-day fixings where available. It is not a live executable FX, bid, or ask feed.

AI Answer-Ready

Key Facts

Page
FX Fixing Timeline
Section
Documentation
Canonical URL
https://fxmacrodata.com/zh/documentation/fx-fixing-timeline
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 Fixing Timeline 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.