FXMacroData Fx Markets API

FX market-state datasets including spot FX, market sessions, risk sentiment, and COT positioning.

Operations 12

GET /v1/forex/{base}/{quote} Get FX spot rates #
GET /v1/fx/reference-rates/{base}/{quote} Get timestamped official FX reference rates #
GET /v1/fx/intraday-reference-rates/{base}/{quote} Get subscriber intraday FX reference rates #
GET /v1/fx/session-rates/{base}/{quote} Get official FX session-close reference rates #
GET /v1/fx/sources List public FX reference-rate sources #
GET /v1/fx/source-universe List public FX reference-rate pair universe #
GET /v1/market_sessions FX market session timetable #
GET /v1/rate_differentials/{base}/{quote} Get pair rate differentials #
GET /v1/curves/{currency} Get curve analytics by currency #
GET /v1/risk_sentiment/changes Recorded risk-sentiment changes #
GET /v1/risk_sentiment Global risk-on / risk-off indicator #
GET /v1/cot/{currency} Get CFTC Commitment of Traders (COT) data #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fxmacrodata:fxmacrodata-fx-markets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

fxmacrodata-fx-markets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: FX Macrodata Fx Markets API
  description: Official-source macroeconomic indicators, release calendars, central-bank policy rates, FX reference rates, COT positioning and commodities across 22 currencies. USD data is available without an API key; other currencies and datasets need an `X-API-Key` header.
  version: 1.0.0
servers:
- url: https://api.fxmacrodata.com
  description: FXMacroData API
security:
- {}
- APIKeyHeader: []
- HTTPBearer: []
tags:


# --- truncated at 32 KB (159 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/fxmacrodata/refs/heads/main/openapi/fxmacrodata-fx-markets-api-openapi.yml