Get macro / market history
get_macro_historyRetrieve historical time series and summary statistics for macro indicators, rates, FX, commodities, and indices to analyze how markets or economies changed over time.
Instructions
Historical time series behind the Global Markets dashboard, often decades long: equity indices, central-bank policy rates, 10-year government bond yields, FX rates, oil/gas/gold/copper, VIX, DXY, the US 2s10s curve, and per-country macro indicators (GDP growth, inflation, unemployment, house prices, credit gap, debt, confidence, macro stress). Address a series by historyCode (from get_global_markets_overview, get_country_macro or get_macro_indicators), by instrument name ("Fed", "Brent", "Germany 10Y", "S&P 500"), or by indicator + country. Returns summary statistics (latest, change over 1M/3M/1Y/5Y, range, where the latest sits in the window) plus resampled points. Use for "how have rates moved since 2022", "plot Brent over 10 years", "is German unemployment rising". Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (inclusive). | |
| code | No | Exact series code from another tool's historyCode field (e.g. "CNBC_US10Y", "BIS_CBPOL_US", "UNEMPLOYMENT:Germany", "YAHOO_GSPC"). | |
| from | No | Start date YYYY-MM-DD (inclusive). | |
| country | No | Country for indicator, e.g. "Japan". | |
| interval | No | Resample to end-of-period values. auto = the finest interval that fits maxPoints. | auto |
| indicator | No | Or a per-country macro indicator, together with country (same keys as get_macro_indicators). | |
| maxPoints | No | Upper bound on returned points (auto interval only; an explicit interval is truncated to the most recent maxPoints). | |
| instrument | No | Or a market name: an index ("S&P 500", "DAX", "Nikkei 225"), commodity ("Brent", "Gold"), FX pair ("EUR/USD"), central bank ("Fed", "ECB", "BoE"), 10Y yield ("Germany 10Y", "US 10Y"), or headline series ("VIX", "DXY", "2s10s", "global inflation"). |