FXMacroData

io.github.fxmacrodata由 GitHub 帳號 fxmacrodata 發布v1.0.1更新於 Nov 2, 2026

Macroeconomic and FX time-series data for AI agents: indicators, calendars, COT, forex, commodities.

已驗證Streamable HTTP可網頁執行資料庫金融資料與分析

概覽

AI 產生的概覽

遠端 MCP 伺服器,向 AI 助理提供 FXMacroData 的總體經濟與外匯時間序列資料,涵蓋指標、發布行事曆、COT、匯率與大宗商品。

可以做什麼
  • 查詢各貨幣可用的指標目錄與資料涵蓋範圍,並檢查 API 健康狀態與用戶端能力
  • 取得總體指標時間序列、最新公布值、央行新聞稿、總體新聞與風險情緒序列
  • 查詢發布行事曆、歷史行事曆快照、事件版本以及已儲存的預測與市場預期
  • 取得含技術指標的外匯即期歷史、季節性、利率曲線、利差與大宗商品快照
  • 在支援 MCP Apps 的用戶端中呈現互動式圖表與行事曆,並產生簡報、情報包、熱力圖、情境與事件回放分析
適用情境
適合助理需要權威總體與外匯資料來做研究、市場解讀、事件預期差分析或貨幣分析的場合,也適合希望在相容用戶端中直接內嵌圖表的使用者。可先用公開的 USD 資料評估,再決定是否訂閱。
執行需求
使用 fxmacrodata.com 的遠端 streamable HTTP 端點,無需本機安裝。許多工具對 USD 資料可匿名使用;非 USD 指標、外匯即期歷史、COT、大宗商品、利率曲線及多數分析工具需要付費訂閱取得的 FXMacroData API 金鑰,依用戶端不同以 OAuth、API 金鑰或 bearer token 提供。
安裝前請注意
多數資料集僅限訂閱者,匿名呼叫會回傳 subscription_required 與訂閱連結;另有訂閱工具會回傳付款選項。API 金鑰屬於憑證,SDK 說明僅透過 HTTPS 傳送並拒絕跳轉至其他主機的重新導向。資料來自第三方,部分欄位為衍生或啟發式結果,例如情緒評分與情境彈性估算。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 FXMacroData,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.fxmacrodata%2Ffxmacrodata/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "fxmacrodata": {
      "type": "http",
      "url": "https://fxmacrodata.com/mcp"
    }
  }
}

README

FXMacroData Python SDK 🐍📊

[PyPI Version] [Python Versions] [License] [Build]

The FXMacroData Python SDK provides a simple and efficient interface for fetching macroeconomic indicators, forex prices, release calendars, COT positioning, and commodity prices from FXMacroData.

Use synchronous and asynchronous clients to bring the data into research notebooks, backtests and applications.

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


🌟 Features

  • Fetch:
    • Macroeconomic indicators — policy rates, inflation, GDP, unemployment, bond yields, and more: 97 distinct indicators across 656 endpoints
    • FX spot rates with optional technical indicators (SMA, RSI, MACD, Bollinger Bands)
    • Release calendars — upcoming economic data release dates
    • Data catalogue — discover available indicators per currency
    • COT data — CFTC Commitment of Traders positioning
    • Commodity prices — gold, silver, platinum
  • Evaluate with public USD macro data covering the most recent 90 days; connect your FXMacroData subscription for full available history.
  • FX spot-rate history through get_fx_price.
  • A key from an authorized FXMacroData subscription is required for protected datasets, including non-USD indicators, FX spot-rate history, COT, and commodities.
  • Full support for:
    • Synchronous client
    • Asynchronous client
  • Lightweight: depends only on requests and aiohttp.

📦 Installation

Install from PyPI:

bash
pip install fxmacrodata

Or install the latest version from GitHub:

bash
pip install git+https://github.com/fxmacrodata/fxmacrodata.git

🔧 Usage

Synchronous

python
from fxmacrodata import Client
client = Client(api_key="YOUR_API_KEY")
# Fetch macroeconomic indicatorsdata = client.get_indicator(    "aud", "policy_rate",    start_date="2023-01-01",    end_date="2023-11-01")print(data)
# Forex price endpointfx = client.get_fx_price("usd", "gbp", start_date="2025-01-01")print(fx)
# Forex with technical indicatorsfx = client.get_fx_price("eur", "usd", indicators="sma_20,rsi_14,macd")print(fx)
# Release calendarcalendar = client.get_calendar("usd")print(calendar)
# Data catalogue — discover available indicatorscatalogue = client.get_data_catalogue("usd")print(catalogue)
# COT positioning datacot = client.get_cot("eur", start_date="2025-01-01")print(cot)
# Commodity pricesgold = client.get_commodities("gold", start_date="2026-01-01")print(gold)

Asynchronous

python
import asynciofrom fxmacrodata import AsyncClient
async def main():    async with AsyncClient(api_key="YOUR_API_KEY") as client:        # Fetch macroeconomic indicators        data = await client.get_indicator("eur", "inflation")        print(data)
        # Forex price endpoint        fx = await client.get_fx_price("usd", "jpy")        print(fx)
        # Release calendar        calendar = await client.get_calendar("usd")        print(calendar)
        # Data catalogue        catalogue = await client.get_data_catalogue("usd")        print(catalogue)
        # COT positioning        cot = await client.get_cot("jpy")        print(cot)
        # Commodity prices        gold = await client.get_commodities("gold")        print(gold)
asyncio.run(main())

Timeouts and errors

Every request has a 30-second timeout by default. Change it per client:

python
Client(api_key="YOUR_API_KEY", timeout=60)            # secondsClient(api_key="YOUR_API_KEY", timeout=(3.05, 120))   # (connect, read)AsyncClient(api_key="YOUR_API_KEY", timeout=60)       # total seconds

All errors are FXMacroDataError or one of its subclasses:

ExceptionRaised when
FXMacroDataAPIErrorThe API returns a non-200 status (.status_code is set).
FXMacroDataResponseErrorThe API returns 200 but the body is an error message or not a JSON object.
FXMacroDataTimeoutErrorThe request exceeds the timeout.
FXMacroDataTransportErrorThe connection fails (DNS, TLS, network).
FXMacroDataRedirectErrorA redirect would send your API key to a different origin, so it is refused.

Your API key is never included in error messages, and it is only sent over HTTPS to the origin you configured: redirects to another host or to plain HTTP are refused rather than followed with the key attached.


OpenBB Integration

FXMacroData supports all practical OpenBB integration paths from this package:

  • OpenBB Python: installable provider/router extension for obb.fxmacrodata.*.
  • OpenBB REST API: /api/v1/fxmacrodata/* routes through openbb-api.
  • OpenBB Workspace, generated: widgets generated by openbb-api from inline metadata.
  • OpenBB Workspace, custom: standalone backend serving widgets.json, apps.json, and data endpoints.
  • OpenBB MCP: tools exposed through openbb-mcp.
  • OpenBB CLI: commands available after openbb-build.

OpenBB packages require Python 3.10+. Install the OpenBB Python extra:

bash
pip install "fxmacrodata[openbb]"openbb-build

Then use FXMacroData from the OpenBB Python interface:

python
from openbb import obb
obb.user.credentials.fxmacrodata_api_key = "YOUR_API_KEY"
catalogue = obb.fxmacrodata.data_catalogue(    currency="USD",    provider="fxmacrodata",).to_df()
inflation = obb.fxmacrodata.macro_indicators(    currency="USD",    indicator="inflation",    start_date="2020-01-01",    provider="fxmacrodata",).to_df()
eurusd = obb.fxmacrodata.fx_historical(    base="EUR",    quote="USD",    start_date="2024-01-01",    provider="fxmacrodata",).to_df()

Run the OpenBB REST API and generated Workspace backend:

bash
pip install "fxmacrodata[openbb-api]"openbb-buildfxmacrodata-openbb-api --host 127.0.0.1 --port 6900

Workspace can be connected to http://127.0.0.1:6900. The generated /widgets.json uses FXMacroData's inline OpenBB widget metadata.

Run the OpenBB Workspace custom backend:

bash
pip install "fxmacrodata[workspace]"fxmacrodata-openbb-backend

Default backend URL:

text
http://127.0.0.1:7779

Workspace exposes /widgets.json, /apps.json, /catalogue, /release_calendar, /macro_indicator, /forex, /cot, and /commodity. Swagger/OpenAPI docs are disabled by default for this backend. For local debugging only, set FXMACRODATA_OPENBB_ENABLE_DOCS=1 before starting it.

Run OpenBB MCP:

bash
pip install "fxmacrodata[mcp]"openbb-buildfxmacrodata-openbb-mcp --default-categories fxmacrodata --host 127.0.0.1 --port 8001

Run OpenBB CLI:

bash
pip install "fxmacrodata[openbb-cli]"openbb-buildopenbb

See docs/openbb-integration.md for the full integration matrix and the separate upstream OpenBB repository contribution path.


📘 API Overview

get_indicator(currency, indicator, start_date=None, end_date=None)

Fetches macroeconomic indicator time series data.

  • currency: "usd", "aud", "eur", "gbp", "cad", "nok", "nzd", "jpy", "brl", "cny", "dkk", "pln", "sek", "sgd", etc.
  • indicator: "policy_rate", "inflation", "gdp", "unemployment", "trade_balance", "current_account_balance", "gov_bond_10y", etc.
  • API key required for non-USD.

get_fx_price(base, quote, start_date=None, end_date=None, indicators=None)

Fetches daily FX spot rates between two currencies.

  • indicators: Optional comma-separated technical indicators — "sma_20", "sma_50", "sma_200", "rsi_14", "macd", "ema_12", "ema_26", "bollinger_bands", or "all".
  • API key required.

get_calendar(currency, indicator=None)

Fetches upcoming economic data release dates for a currency.

  • indicator: Optional filter to a specific indicator slug.
  • Returns announcement_datetime (Unix timestamp) and release (indicator slug).

get_data_catalogue(currency, include_capabilities=False, include_coverage=False, indicator=None)

Discovers available macroeconomic indicators for a given currency.

  • Returns a dict keyed by indicator slug with name, unit, frequency, and has_official_forecast.
  • API key required for non-USD.

get_cot(currency, start_date=None, end_date=None)

Fetches CFTC Commitment of Traders (COT) positioning data.

  • Supported currencies: AUD, CAD, CHF, EUR, GBP, JPY, NZD, USD.
  • API key required for non-USD.

get_commodities(indicator, start_date=None, end_date=None)

Fetches commodity price time series.

  • indicator: "gold", "silver", or "platinum".
  • API key required.

💹 Supported Currencies & Indicators

18 currencies supported: AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, ILS, JPY, NGN, NOK, NZD, PEN, SEK, THB, USD.

The table below shows a sample of indicator coverage across four major currencies. Use get_data_catalogue() to discover the full list for any currency.

CategoryMetricUSDEURAUDGBP
EconomyGDP Growth✓✓✓✓
Inflation Rate✓✓✓✓
Trade Balance✓✓✓✓
Current Account Balance✓✓✓✓
Retail Sales✓✓✓✓
Industrial Production✓———
Labor MarketUnemployment Rate✓✓✓✓
Employment Level✓✓✓✓
Full-Time Employment✓✓✓—
Part-Time Employment✓✓✓✓
Participation Rate✓✓✓✓
Non-Farm Payrolls✓———
Monetary PolicyPolicy Rate✓✓✓✓
Risk-Free Rate✓✓✓✓
Central Bank Assets✓—✓—
Government Bond Yields2-Year Govt Bond✓✓✓✓
5-Year Govt Bond✓✓✓✓
10-Year Govt Bond✓✓✓✓
Inflation-Linked Bond✓✓✓✓

📄 License

MIT License © FXMacroData


🌐 Links

來源:README.md,提交 817acce

工具

56

ping

Ping

Health check that confirms the FXMacroData API and MCP server are reachable. Returns the API health response.

無需輸入參數。

mcp_capabilities

MCP Capabilities

Explains what the FXMacroData MCP server can do: which tools render MCP Apps, which return plain rows, what is public versus subscriber-only, and how tool selection differs across ChatGPT, Claude, Cursor, Codex, and plain MCP clients. Suited to questions about what is available, why visuals are not showing, or how to get the same result in a different interface.

無需輸入參數。

mcp_auth_guide

MCP Auth Guide

Explains which authentication mode suits FXMacroData MCP across major clients and platforms: OAuth, an API key, or a bearer token, for ChatGPT/OpenAI Apps, Claude/Anthropic, Microsoft/VS Code/Copilot-style clients, AstrBot, Cursor, Codex, local scripts, and CI.

無需輸入參數。

subscribe_for_mcp_access

Subscribe For MCP Access

Returns FXMacroData subscription options and a direct checkout path for unlocking MCP app visuals, charts, and advanced analytical tools.

無需輸入參數。

data_catalogue

Indicator Catalogue

List every macroeconomic indicator FXMacroData publishes for a currency, with units, frequency, and coverage/freshness metadata. Returns the exact `indicator` slug strings used across FXMacroData indicator, calendar, and prediction endpoints. Rows whose `coverage` is stale, partial, or unavailable are not suitable for real-time carry or inflation analysis. Supported currencies (lowercase 3-letter codes): AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD. Access: free for every currency, no API key required.

輸入參數currency必填indicatorinclude_coverageinclude_capabilities

risk_sentiment

Global Risk Sentiment

Return the global risk-on/risk-off sentiment series used for FX regime analysis. The result includes a derived composite score, regime label, component contributions, pagination, and data_quality metadata. Suited to cross-asset regime context for high-beta, safe-haven, commodity, or USD-defensive FX conditions. Access: free, no API key required.

輸入參數end_datestart_date

risk_sentiment_changes

Recorded Risk Sentiment Changes

Poll retained risk-sentiment additions, score revisions, and input-metadata changes. Pass pagination.next_after_sequence as after_sequence on the next page or poll. Recording timestamps describe when FXMacroData stored each change; earlier untracked revisions and publisher publication times are unavailable. Access: free, no API key required.

輸入參數limitafter_sequence

macro_news

Macro News

Return recent official central-bank news and press-release headlines for a currency, covering central-bank policy, inflation, employment, GDP, trade, fiscal, energy, and commodity narratives. Rows are official-source headlines with lightweight keyword-derived affected_indicators and sentiment fields when a headline is classifiable. Supported currencies: AUD, BRL, CAD, CHF, DKK, EUR, GBP, ILS, JPY, NGN, NOK, NZD, PEN, SEK, USD. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數limitoffsetcurrency必填lookback_days

release_calendar

Release Calendar

Get upcoming scheduled macroeconomic release timestamps for a currency, for questions such as when the next CPI, GDP, payrolls, or policy decision is due. Returns ISO-8601 announcement_datetime values in UTC plus market-local timestamps, a markdown agenda, and Release Calendar App metadata. The optional `timezone` adds an `announcement_datetime_requested_timezone` field. Each row has a `release` string with the indicator name and a `currency` code. Unbounded calls return future releases only. The optional `indicator` filter narrows to a single series, and optional `start_date` and `end_date` bounds select a month, week, day, or explicit date range. Supported currencies: AUD, BRL, CAD, CHF, CNH, CNY, COMM, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD. The `indicator` parameter lists the accepted indicator slugs. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數currency必填end_datetimezoneindicatorstart_date

calendar_snapshot

Historical Calendar Snapshot

Return persisted economic-event schedules, importance and cancellation states at an explicit historical cutoff. Accepted mode requires actual capture and parser acceptance by the cutoff. Reconstruction additionally admits qualified official notices recovered later; it does not establish historical service availability. Scheduled-date and event filters apply after version selection. Checkpoint and cursor pin subsequent export pages. Empty results do not establish that no events were scheduled. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數as_of必填limitcursorcurrency必填end_datecheckpointevent_kindimportancestart_dateknowledge_mode

calendar_event_versions

Calendar Event Versions

Return immutable schedule and importance versions for a stable archive event ID, including explicit publisher cancellations and source capture evidence. Capture, acceptance and documentary publisher clocks remain distinct. Checkpoint and cursor pin subsequent history pages. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數limitcursorcurrency必填checkpointarchive_event_id必填

calendar_archive_coverage

Calendar Archive Coverage

Inspect persisted official-calendar captures, parser outcomes, configured sources and coverage limitations for a currency. Successful capture does not prove complete historical calendar or speech coverage. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數currency必填

release_calendar_visual_artifact

Release Calendar Visual Artifact

Returns the release calendar payload with MCP Apps metadata so compatible clients render the interactive Release Calendar App inline. Suited to requests to show, display, visualize, or render a macro release calendar, such as 'show me the AUD release calendar'. Optional `indicator`, `start_date`, and `end_date` filters narrow the calendar to a series, month, week, day, or date range; `timezone` adds local times for a specific city or region. Supported currencies: AUD, BRL, CAD, CHF, CNH, CNY, COMM, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD. The `indicator` parameter lists the accepted indicator slugs. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數currency必填end_datetimezoneindicatorstart_date

event_predictions

Event Predictions

Return stored forecasts, consensus-style predictions, central-bank projections, survey forecasts, IMF forecasts, nowcasts, or FXMacroData blended predictions for macro announcements, for actual-vs-consensus, prior-vs-forecast, or event-surprise context. Rows are keyed by announcement_id/date/indicator and include prediction source metadata. Supported currencies: AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD. The `indicator` parameter lists the accepted indicator slugs. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數pageas_ofbasislimitoffsetcurrency必填end_datefrequencyindicator必填start_datebefore_dateseasonality另有 8 個

latest_announcements

Latest Macro Announcements

Return the latest stored macroeconomic value for every available indicator in one currency, as a compact current macro snapshot. An unverified announcement_datetime has unproven origin; it is neither a verified scheduled time nor observed actual publication. Report absent schedule, publication and ingestion evidence as unknown, and latency as not measured. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數currency必填

announcement_changes

Macro Announcement Changes

Poll recently ingested macro announcement changes with a resumable cursor. This is the bounded, MCP-safe counterpart to the release-event stream: the returned next_cursor is accepted as `since` on a later call, so polling resumes without holding a streaming invocation open. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數limitsincepayloadcurrenciesindicators

press_releases

Official Press Releases

Return the public central-bank press-release archive for a currency as the original official release rows, without derived sentiment or indicator classifications. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數limitoffsetcurrency必填

macro_factor

Macro Factor

Return a precomputed macro factor for one currency, with optional stored component scores and source references. The factor is a documented summary value and does not replace the underlying macro releases. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數limitfactor必填offsetcurrency必填end_datestart_dateinclude_sourcesinclude_components

fx_reference_sources

FX Reference Sources

List public official FX reference-rate sources and the source policy that governs pair-specific intraday reference-rate series. Access: free for every currency, no API key required.

無需輸入參數。

fx_reference_universe

FX Reference Pair Universe

List the public FX reference-rate pair universe, optionally filtered by currency or source id, showing which pairs and sources have intraday reference-rate series. Access: free for every currency, no API key required.

輸入參數sourcecurrency

fx_intraday_reference_rates

Intraday FX Reference Rates

Return subscriber intraday official FX reference-rate observations for one pair. Coverage is limited to the pairs and sources in the FX reference pair universe. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_timestart_time

rate_curve

Rate Curve Analytics

Return official government-nominal curve nodes, slopes, or derived forward segments for one currency. This is a subscriber data tool and preserves the endpoint's requested view and method metadata. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數dateviewmethodmetriccurrency必填curve_family

rate_differentials

Pair Rate Differentials

Return the stored or derived rate differential for one FX pair, with the measure, rate type, curve family, and tenor metadata that define it. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填limitquote必填offsetmeasureend_daterate_typestart_datecurve_familyend_tenor_yearsstart_tenor_years

latest_commodities

Latest Commodity Values

Return the latest stored value for every available commodity indicator in one response, as a batch snapshot of the subscriber commodity series. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

無需輸入參數。

forex

FX Spot Rates

Get raw historical FX spot-rate rows for a currency pair (e.g. EUR/USD, USD/JPY) as a plain-text table, raw rows, exact values, or JSON-like data, with optional technical-indicator series (SMA, EMA, RSI, MACD, Bollinger Bands, etc.) computed from spot. Returns data only, without chart metadata. Daily granularity from official central-bank reference rates with full multi-year history. Supported currencies (lowercase 3-letter codes): AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD. The optional `indicators` parameter accepts a comma-separated list of technical indicator slugs to attach to each row. Supported indicator values: adx_14, atr_14, bollinger_bands, cci_20, donchian_20, ema_12, ema_20, ema_200, ema_26, ema_50, macd, macd_histogram, macd_signal, rsi_14, sma_20, sma_200, sma_50, stochastic_14_3, williams_r_14, all. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_dateindicatorsstart_date

seasonality

FX Seasonality

Get monthly return seasonality for an FX pair or XAU/USD, covering seasonal patterns, month-of-year tendency, historical monthly win rate, and XAUUSD/gold seasonality. Returns monthly average return, median return, win rate, sample size, dispersion, and per-year monthly returns from stored FX or gold series. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數monthend_dateinstrument必填lookback_years

indicator_query

Indicator Time Series

Get a paginated historical time series of a single macroeconomic indicator for a currency, sourced directly from the official central bank or statistical agency. Covers CPI/inflation, GDP, unemployment, policy rates, bond yields, payrolls, retail sales, PCE, PPI, trade balance, current account, money supply, and similar series. Each row returns `date` (economic reference period), `val` (numeric), and separate publication evidence. The `as_of` parameter restricts results to historically eligible values; current values can include later revisions. Returns raw rows without chart metadata. Each call returns one page, newest first: 100 rows when `start_date` is set, otherwise 20 (`limit` overrides, maximum 100). A page is not the full history. When `pagination.has_more` is true the result has a `partial_page` object: `partial_page.next_call` holds the exact arguments for the next page and `partial_page.pages_remaining` gives the number of pages left. Responses default to official-source rows only; prohibited private aggregator rows are always removed. USD indicators are free; non-USD requires an API key. Supported currencies: AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD. The `indicator` parameter lists the accepted indicator slugs. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數pageslugas_oflimitoffsetcurrencyend_dateindicatorrevisionsstart_datevalue_modeseries_mode另有 3 個

plot_visual_artifact

Plot Visual Artifact

Build a generic MCP Apps chart from one or more FXMacroData endpoint families: arbitrary plots, multi-series charts, and actual-vs-consensus views that combine announcements with predictions. Supported series sources are announcements, predictions, forex, commodities, and cot. For example, USD policy-rate midpoint actuals against market consensus use one announcements series for `usd/policy_rate_midpoint` and one predictions series for `usd/policy_rate_midpoint` with `prediction_class=forecaster_survey`. The tool does not fetch arbitrary URLs or run custom chart code; it only composes approved FXMacroData API surfaces into the comparison chart app. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數basepagelimitqueryquotetitley_keyoffsetseriessourcex_axisy_label另有 7 個

indicator_visual_artifact

Indicator Visual Artifact

Returns an indicator time series with MCP Apps metadata so compatible clients (Claude Desktop, ChatGPT, Codex, etc.) render an interactive line chart instead of a JSON dump. Suited to indicator time-series requests to show, tell, explain, compare, inspect a trend, or review a recent window. Broad histories page through the `limit`, `offset`, and `page` controls, with `pagination.next_offset` giving the next page. Supported currencies: AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD. The `indicator` parameter lists the accepted indicator slugs. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數pagelimitoffsetcurrency必填end_dateindicator必填start_date

forex_visual_artifact

FX Visual Artifact

Returns FX spot-rate history for a currency pair with MCP Apps chart metadata so compatible clients render an interactive spot-rate chart inline. Suited to FX pair time-series and trend requests such as 'show me AUD/USD', 'the last 30 days', or 'how has EUR/USD moved recently'. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_dateindicatorsstart_date

commodities_visual_artifact

Commodities Visual Artifact

Returns commodity price history with MCP Apps chart metadata so compatible clients render an interactive commodity chart inline. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數end_dateindicator必填start_date

cot_visual_artifact

COT Visual Artifact

Returns weekly CFTC COT positioning data with MCP Apps chart metadata. By default it charts noncommercial net positioning; the `metric` parameter selects another COT field. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數metricreportcurrency必填end_datestart_date

policy_rate_differential_visual_artifact

Policy-Rate Differential Visual Artifact

Build a two-series chart comparing base and quote policy-rate history to visualize the rate differential setup for an FX pair. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_datestart_date

macro_briefing_task

Macro Briefing Task

Build a compact macro briefing for a currency by combining catalogue, key macro series, release-calendar, prediction, news, risk-sentiment, COT, seasonality, and FX technical context. Returns analysis in the tool response. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數currency必填

indicator_intel_task

Indicator Intelligence Task

Build an intelligence pack for one indicator by combining chart-ready series data, derived analytics, and nearest release timing context. Returns analysis in the tool response. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數currency必填end_dateindicator必填start_date

pair_intel_task

FX Pair Intelligence Task

Build an intelligence pack for an FX pair by combining policy-rate spread context, spot-rate context, and release-timing metadata. Returns analysis in the tool response. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_datestart_date

macro_heatmap_task

Macro Heatmap Task

Build a cross-currency macro heatmap from indicator time series and return a matrix with latest values, recent changes, and z-scores. Returns analysis in the tool response.

輸入參數end_datecurrenciesindicatorsstart_date

policy_scenario_modeler_task

Policy Scenario Modeler Task

Run a policy-rate spread what-if scenario for an FX pair and estimate directional spot impact using an explicit heuristic elasticity assumption. Returns analysis in the tool response. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_dateshock_bpsshock_legstart_datepolicy_shock_bpselasticity_per_100bps

macro_war_room_task

Macro War Room Task

Build a multi-panel macro market cockpit that combines FX sessions, upcoming release queue, pair context, and generated risk alerts. Returns analysis in the tool response. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數basequotecurrencyend_dateindicatorstart_date

event_impact_replay_task

Event Impact Replay Task

Replay verified publication events against measured 1, 5 and 20-observation FX reference returns. Daily windows exclude the publication-day fixing; changes from previous actuals are not consensus surprises. Returns analysis in the tool response. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數basequotecurrency必填end_dateindicator必填start_datelookback_events

quant_scenario_lab_task

Quant Scenario Lab Task

Run an expanded quant-style policy scenario for an FX pair with deterministic projection, stress percentiles, and horizon assumptions. Returns analysis in the tool response. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_dateshock_bpsshock_legstart_datehorizon_dayselasticity_per_100bpsannualized_volatility_pct

known_at_time_task

Known At Time Task

Return the slice of a macro series that would have been known at a specific timestamp, selecting verified value vintages before pagination. Returns analysis in the tool response. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數as_of必填currency必填end_dateindicator必填start_dateavailabilitydataset_version

macro_regime_classifier_task

Macro Regime Classifier Task

Classify a currency's macro regime using policy rate, inflation, GDP, and unemployment context, with explicit assumptions and confidence notes. Returns analysis in the tool response. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數currency必填end_datestart_date

release_risk_score_task

Release Risk Score Task

Score upcoming releases for a currency pair using release-calendar proximity and indicator-level heuristics. Returns analysis in the tool response. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填horizon_events

portfolio_risk_engine_task

Portfolio Risk Engine Task

Analyze a multi-position FX book for concentration, stress exposure, and event-driven catalyst risk. Returns analysis in the tool response. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數horizon_eventspositions_json必填stress_shock_pct

fx_trade_setup_task

FX Trade Setup Task

Build a trader-oriented FX pair setup using spot context, macro differentials, upcoming catalyst risk, and optional COT positioning. Returns analysis in the tool response. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填include_cothorizon_events

fx_backtest_task

FX Backtest Task

Run a spot-only FX backtest using historical policy-rate-differential and/or lagged momentum signals. Downloads complete histories, verifies vintages and price coverage, and charges opening, rebalancing and closing costs. The carry signal does not include funding income or broker rollover. Returns analysis in the tool response. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數base必填quote必填end_datestrategystart_dateevent_gatedinitial_capitalevent_window_daysmomentum_lookbacktransaction_cost_bps

macro_research_pack_task

Macro Research Pack Task

Bundles catalogue, indicator history, next release timing, and optional FX pair context into one persistent-host-friendly research payload. Returns analysis in the tool response. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數basequotecurrency必填end_dateindicator必填start_date

prediction_coverage

Forecast Coverage Catalogue

List which publishers produce pre-release forecasts for a currency's indicators, what class of forecast each one is (compiled consensus, forecaster survey, market implied, model nowcast, central-bank projection), whether any of them is a genuine consensus, and how far the verified archive runs. Suited to questions about whether a consensus, forecast or estimate exists for a release, such as 'do you have the consensus for US CPI' or 'what forecast do you have for payrolls'. It needs no API key and works for every served currency. It returns no forecast values: those require a subscription. Its answer distinguishes two cases: no publisher produces this forecast for anybody (no subscription adds it), versus the data exists and is behind the paywall. A pair listed here exists in the verified archive. Access: free for every currency, no API key required. It returns coverage metadata only; forecast values need a subscription.

輸入參數currency

market_sessions

FX Market Sessions

Returns which FX trading sessions are currently open (Sydney, Tokyo, London, New York) and when the next session opens or closes, for questions such as 'is the market open?', 'when does London open?', or 'which sessions overlap right now?'. An ISO-8601 UTC timestamp in `at` returns the snapshot for a specific moment instead of now. Accounts for weekends and major banking holidays. Access: free, no API key required.

輸入參數at

cot_data

COT Report

Get weekly CFTC Commitment of Traders (COT) positioning data for a currency's FX futures contract on the CME, covering speculator positioning, non-commercial longs vs shorts, hedge-fund FX positioning, and sentiment extremes. Returns weekly snapshots with long/short open interest by trader category. Updated every Friday at 15:30 ET reflecting the Tuesday cutoff. USD (the USD Index contract) is available without an API key for the most recent 90 days on a 15-minute release delay; every other currency and the full history need an API key. Supported currencies: AUD, CAD, CHF, EUR, GBP, JPY, NZD, USD, XAU. Access: USD is available without an API key; every other currency returns subscription_required with a subscribe link.

輸入參數reportcurrency必填end_datestart_date

commodities

Commodity Indicators

Get historical price series for supported commodity indicators using the exact slugs advertised by this schema. Requires an API key. Supported indicators: crude_oil_inventories, distillate_inventories, gasoline_inventories, gold, natural_gas, natural_gas_storage, oil_brent, oil_wti, platinum, silver. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數symbolend_dateindicatorstart_date

positioning

Futures Instrument Positioning

Read persisted CFTC contract positioning. Omit instrument to list supported instrument/report combinations. Main and micro contracts, futures-only and combined reports remain separate. Position dates are not publication timestamps. Requires an API key.

輸入參數limitoffsetreportend_dateinstrumentstart_date

native_history

Reserves, Treasury and Energy History

Read one source and year of gold ownership/custody, Treasury auctions, cash/debt, TIC positions or EIA energy fundamentals. Keep native dimensions and unknown historical publication times. Omit source to list definitions; an API key is required.

輸入參數yearlimitorderoffsetregionsourcemeasureproductmaturityaccount_typeownership_basisholder_country_code

financial_prices

Official Financial Prices

Read persisted official financial price observations: government yield curves, individual securities, overnight benchmarks and reference prices. Preserves issuer, instrument, maturity, curve type and source precision. Requires an API key; an empty result means no stored observations for the selection. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數limitissueroffsetsourcemeasurecurrency必填end_datestart_dateinstrument_id

official_dataset_family

Official Dataset Family

Get metadata-first official dataset payloads grouped by API endpoint type. `endpoint_type` selects the API taxonomy group and `dataset` selects the specific series family. Supported endpoint types: monetary_policy, fiscal_policy, international_trade, statistics_releases. Supported datasets: auction_metrics, bop, capital_flows, cb_liquidity, credit_conditions, external_debt, fx_intervention, iip, services_trade, treasury_cash, wage_settlements. Access: requires an FXMacroData API key; an anonymous call returns subscription_required with a subscribe link.

輸入參數dataset必填currency必填componentendpoint_type必填

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分