Skip to content
@fxmacrodata

FXMacroData

Real-time forex macroeconomic API for all major currency pairs sourced from central bank announcements.

FXMacroData 📊

Official-source macroeconomic and FX data for research and backtesting.

FXMacroData provides macroeconomic observations, FX data and central-bank releases sourced from central banks and statistical agencies. Use supplied publication timestamps and provenance for point-in-time research.

Subscribe to FXMacroData for non-USD data, full available history, FX, commodities and positioning. Use the public USD workflow to evaluate the API before connecting your subscription.


📈 Coverage

Explore the current data coverage for available currencies, indicators and history.

Category Indicators
Monetary policy Policy rate, interbank rate, overnight deposit rate
Economy GDP growth, inflation (CPI/HICP), trade balance, current account, retail sales
Labour market Unemployment, employment, participation rate, non-farm payrolls
Government bonds 2y–30y yields, inflation-linked bonds
Positioning & commodities CFTC Commitment of Traders, gold, silver, platinum
Other Money supply, inflation expectations, house prices

Browse the full matrix at Data Coverage.


🚀 Start here

pip install fxmacrodata
from fxmacrodata import Client

# The key is sent as an X-API-Key header, not in the URL.
client = Client(api_key="YOUR_API_KEY")

# Macroeconomic releases, with announcement timestamps
data = client.get_indicator("eur", "inflation", start_date="2023-01-01")

# Upcoming releases
calendar = client.get_calendar("usd")

An async client is available as AsyncClient. Both depend only on requests and aiohttp, and work directly with pandas.


📦 Repositories

Repo What it is
fxmacrodata Official Python SDK — sync + async clients (PyPI)
mcp-server-fxmacrodata MCP server, for using the data from Claude and other AI agents
examples Runnable examples across backtesting and analysis frameworks
ocaml-fxmacrodata OCaml client (opam)
FXMacroData.jl Julia client
astrbot-plugin-fxmacrodata AstrBot plugin exposing the full MCP tool set

🤖 AI agents & MCP

The API is available as a hosted Model Context Protocol server, so an agent can query macro data, release calendars, and FX rates as tools:

https://mcp.fxmacrodata.com/mcp

See the MCP Server docs for client setup, or run the self-hosted server.


💡 Why it exists

  • Point-in-time research — use supplied publication timestamps and revision metadata when constructing historical datasets
  • Official sources only — central banks and statistical agencies, with provenance on every response
  • Release-aware — a calendar of upcoming releases with confirmed vs assumed times, not just historical series
  • Built for machines — REST, GraphQL, OpenAPI, and MCP

💰 Access

Plan Access
Individual Subscription for personal research and trading, including non-USD data, full available history, FX, positioning and commodities
Enterprise Subscription for institutional use, with team access and administrative controls
USD evaluation Public USD macroeconomic data within the public-history window, without an API key

Compare subscriptions for current access and terms. Commercial redistribution is a separate add-on.


🔌 Endpoint & authentication

All endpoints live under https://api.fxmacrodata.com/v1/. Authenticate with an X-API-Key header — an api_key query parameter is still accepted, but a key in a URL is recorded by proxies, CDNs and server access logs.


🔗 Links

Popular repositories Loading

  1. fxmacrodata fxmacrodata Public

    Python client library to give traders, quants, and analysts access to forex macroeconomic data via the FXMacroData API.

    Python 11 1

  2. gloomberb-fxmacrodata gloomberb-fxmacrodata Public

    Native FXMacroData research panes, macro charts and commands for Gloomberb

    TypeScript 1 1

  3. .github .github Public

    Real-time forex macroeconomic API for all major currency pairs sourced from central bank announcements.

  4. mcp-server-fxmacrodata mcp-server-fxmacrodata Public

    MCP server for the FXMacroData API — macroeconomic indicators, release calendars, COT, commodities, and forex for AI agents. Works with Claude Desktop, Cursor, VS Code, OpenClaw, and any MCP client.

    Python

  5. examples examples Public

    Example gallery for apps built with data from FXMacroData

    Python

  6. FXMacroData.jl FXMacroData.jl Public

    Julia client for the FXMacroData API — official-source forex, macroeconomic indicators, release calendars and COT positioning

    Julia

Repositories

Showing 10 of 156 repositories
  • wealthfolio Public Forked from wealthfolio/wealthfolio

    A beautiful, private, local-first personal finance tracker. Investments, net worth, spending, and simulations.

    fxmacrodata/wealthfolio's past year of commit activity
    Rust 0 AGPL-3.0 777 0 0 Updated Oct 21, 2026
  • runline Public Forked from Michaelliv/runline

    ⚡ Code mode for agents

    fxmacrodata/runline's past year of commit activity
    TypeScript 0 17 0 0 Updated Oct 21, 2026
  • plugin-marketplace Public Forked from xai-org/plugin-marketplace

    Official xAI plugin marketplace

    fxmacrodata/plugin-marketplace's past year of commit activity
    Python 0 1,007 0 0 Updated Oct 21, 2026
  • claude-plugin-fxmacrodata Public

    FXMacroData plugin for Claude Code: official-source FX, macroeconomic and central-bank data

    fxmacrodata/claude-plugin-fxmacrodata's past year of commit activity
    0 MIT 0 0 0 Updated Oct 21, 2026
  • scientific-agent-skills Public Forked from K-Dense-AI/scientific-agent-skills

    Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.

    fxmacrodata/scientific-agent-skills's past year of commit activity
    Python 0 MIT 4,802 0 0 Updated Oct 21, 2026
  • DB-GPT Public Forked from eosphoros-ai/DB-GPT

    open-source agentic AI data assistant for the next generation of AI + Data products.

    fxmacrodata/DB-GPT's past year of commit activity
    Python 0 MIT 3,307 0 0 Updated Oct 20, 2026
  • last30days-skill Public Forked from mvanhorn/last30days-skill

    AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

    fxmacrodata/last30days-skill's past year of commit activity
    Python 0 MIT 5,959 0 0 Updated Oct 20, 2026
  • FinGPT Public template Forked from AI4Finance-Foundation/FinGPT

    FinGPT: Open-Source Financial Large Language Models! Revolutionize 🔥 We release the trained model on HuggingFace.

    fxmacrodata/FinGPT's past year of commit activity
    Jupyter Notebook 0 MIT 3,794 0 0 Updated Oct 20, 2026
  • ai-berkshire Public Forked from xbtlin/ai-berkshire

    AI 时代的伯克希尔:基于 Claude Code / Codex 的价值投资研究框架。巴菲特·芒格·段永平·李录四大师方法论 + 多Agent并行研究。| AI-era Berkshire: a value investing research framework built for Claude Code / Codex. 4 masters' methodologies + multi-agent adversarial analysis.

    fxmacrodata/ai-berkshire's past year of commit activity
    HTML 0 MIT 2,877 0 0 Updated Oct 20, 2026
  • dify-plugins Public Forked from langgenius/dify-plugins

    All Dify Plugins listed in Dify Marketplace, plus illustrated plugin examples.

    fxmacrodata/dify-plugins's past year of commit activity
    Python 0 980 0 0 Updated Oct 20, 2026