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, timestamped for backtesting.

fxmacrodata.com delivers macroeconomic indicators, FX prices, and central-bank releases sourced directly from central banks and statistical agencies. Every observation carries the exact announcement timestamp, so research and backtests can ask what was knowable at the time rather than silently using a revised figure.


📈 Coverage

656 indicator endpoints · 97 distinct macroeconomic indicators · 18 currencies

AUD · BRL · CAD · CHF · CNH · CNY · DKK · EUR · GBP · ILS · JPY · NGN · NOK · NZD · PEN · SEK · THB · USD

CategoryIndicators
Monetary policyPolicy rate, interbank rate, overnight deposit rate
EconomyGDP growth, inflation (CPI/HICP), trade balance, current account, retail sales
Labour marketUnemployment, employment, participation rate, non-farm payrolls
Government bonds2y–30y yields, inflation-linked bonds
Positioning & commoditiesCFTC Commitment of Traders, gold, silver, platinum
OtherMoney supply, inflation expectations, house prices

Browse the full matrix at Data Coverage.


🚀 Start here

pip install fxmacrodata
fromfxmacrodataimportClient# 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 timestampsdata=client.get_indicator("eur", "inflation", start_date="2023-01-01")
# Upcoming releasescalendar=client.get_calendar("usd")

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


📦 Repositories

RepoWhat it is
fxmacrodataOfficial Python SDK — sync + async clients (PyPI)
mcp-server-fxmacrodataMCP server, for using the data from Claude and other AI agents
examplesRunnable examples across backtesting and analysis frameworks
ocaml-fxmacrodataOCaml client (opam)
FXMacroData.jlJulia client
astrbot-plugin-fxmacrodataAstrBot 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

  • No lookahead bias — every point carries its announcement timestamp, and revisions keep their original epochs, so you can reconstruct what was published when
  • 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

PlanAccess
FreeUSD macroeconomic indicators, most recent 90 days, no API key required
Individual — $50/monthAll 18 currencies, full history, FX prices, COT, commodities. 14-day free trial
EnterpriseHigher limits, commercial redistribution, support

See Pricing for current terms.


🔌 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 fxmacrodataPublic

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

    Python 9 1

  2. .github .githubPublic

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

  3. mcp-server-fxmacrodata mcp-server-fxmacrodataPublic

    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

  4. examples examplesPublic

    Example gallery for apps built with data from FXMacroData

    Python

  5. FXMacroData.jl FXMacroData.jlPublic

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

    Julia

  6. astrbot-plugin-fxmacrodata astrbot-plugin-fxmacrodataPublic

    Native AstrBot plugin for complete FXMacroData MCP tools, prompts, resources, OAuth, macro research, and alerts.

    Python

Repositories

Showing 7 of 7 repositories

Top languages

Loading…

Most used topics

Loading…