Python
Typed synchronous and asynchronous clients for macro releases, FX history, calendars, positioning and commodities. Python 3.9 or newer.
Installpip install fxmacrodata
from fxmacrodata import Client
client = Client(api_key="YOUR_API_KEY")
# Macro releases: AUD cash rate decisions in a window
data = client.get_indicator("aud", "policy_rate", start_date="2023-01-01", end_date="2023-11-01")
# FX history, optionally with indicators computed server-side
fx = client.get_fx_price("eur", "usd", indicators="sma_20,rsi_14,macd")
# Release calendar
calendar = client.get_calendar("usd")