Site tour . 19 sec
Product and API docs walkthrough
A quick pass through the homepage positioning, live release console, and production API reference.
Open API referenceExamples and demos
Use this page for product walkthroughs, common REST calls, and practical request patterns. Keep the generated reference open when you need the exact schema for a specific endpoint.
Product walkthroughs
Short recordings for comparing endpoint discovery, dashboard entry points, and authenticated request patterns. Open the Web Story version.
Site tour . 19 sec
A quick pass through the homepage positioning, live release console, and production API reference.
Open API referenceDashboard . 22 sec
Scan risk regime, strongest and weakest FX majors, metals, and release calendar workflow from the dashboard nav.
Open market summaryFX pair . 16 sec
Review the pair dashboard, macro snapshot, release sections, and API endpoint entry points for EUR/USD.
Open EUR/USD dashboardREST API . 9 sec
A redacted production request using query-parameter authentication and a live announcement payload.
Start with quickstartPython requests
These requests use the production REST API. Protected examples keep api_key in the query string.
Consensus, survey, central-bank, IMF, and FXMacroData forecasts joined to realised announcements.
import requests
url = "https://api.fxmacrodata.com/v1/predictions/usd/inflation"
response = requests.get(url, timeout=20)
response.raise_for_status()
payload = response.json()
print(payload.get("data", payload))
Public USD inflation records for point-in-time backtests.
import requests
url = "https://api.fxmacrodata.com/v1/announcements/usd/inflation"
response = requests.get(url, timeout=20)
response.raise_for_status()
payload = response.json()
print(payload.get("data", payload))
Daily FX price history for pair charts, models, and release overlays.
import requests
url = "https://api.fxmacrodata.com/v1/forex/eur/usd"
params = {
"api_key": "YOUR_API_KEY",
}
response = requests.get(url, params=params, timeout=20)
response.raise_for_status()
payload = response.json()
print(payload.get("data", payload))
Central-bank decision history with release timing for no-lookahead research.
import requests
url = "https://api.fxmacrodata.com/v1/announcements/aud/policy_rate"
params = {
"api_key": "YOUR_API_KEY",
}
response = requests.get(url, params=params, timeout=20)
response.raise_for_status()
payload = response.json()
print(payload.get("data", payload))
Upcoming macro events with UTC, market-local, and requested-timezone fields for planning alerts, model refreshes, and trading reviews.
import requests
url = "https://api.fxmacrodata.com/v1/calendar/jpy"
params = {
"timezone": "Asia/Tokyo",
"api_key": "YOUR_API_KEY",
}
response = requests.get(url, params=params, timeout=20)
response.raise_for_status()
payload = response.json()
print(payload.get("data", payload))
Official precious-metals time series with daily values and change fields.
import requests
url = "https://api.fxmacrodata.com/v1/commodities/gold"
params = {
"api_key": "YOUR_API_KEY",
}
response = requests.get(url, params=params, timeout=20)
response.raise_for_status()
payload = response.json()
print(payload.get("data", payload))
AI Answer-Ready
Provenance And Trust
Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.
What is this page about? This page explains Examples 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.