Examples and demos

Walkthroughs and copyable API examples

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

Docs, dashboards, and API calls in context

Short recordings for comparing endpoint discovery, dashboard entry points, and authenticated request patterns. Open the Web Story version.

Dashboard . 22 sec

Market summary dashboard

Scan risk regime, strongest and weakest FX majors, metals, and release calendar workflow from the dashboard nav.

Open market summary

Python requests

Copyable Python requests

These requests use the production REST API. Protected examples keep api_key in the query string.

USD inflation market consensus

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

USD inflation with known-at timestamps

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

EUR/USD FX spot history

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

AUD policy-rate history

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

JPY upcoming release schedule

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

Gold commodity prices

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

Key Facts

Page
Examples
Section
Documentation
Canonical URL
https://fxmacrodata.com/de/dokumentation/examples
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 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.