Tools / Macro
Compare macro series
compare_macro_series
Two to eight macro series on one date axis: unemployment or inflation across countries, government yields, GDP growth, CPI against the Fed funds rate. Mixed frequencies are aggregated at the source to the coarsest unless one is given; optional transformation and rebasing to 100. Returns metadata and a summary per series plus the aligned table. Find ids with search_macro_series.
Questions it answers
- Compare unemployment in the US, Germany and Spain over five years.
- Plot 10-year yields of Germany, Italy and Japan on one axis.
Parameters
| Parameter | Description |
|---|---|
series_idsrequiredstring[] | Series ids to align, e.g. ['UNRATE','LRHUTTTTDEM156S','LRHUTTTTESM156S']. International ids follow patterns such as IRLTLT01DEM156N (Germany 10-year yield, monthly), LRHUTTTTESM156S (Spain unemployment rate), NAEXKP01GBQ657S (UK real GDP growth, q/q) |
unitslevel | change | pct_change | yoy_change | yoy_pct | annualized_pct | log = "level" | Transformation applied to every series at the source |
frequencyd | w | m | q | a | Align every series to this frequency (default: the coarsest among them); a series already coarser keeps its own |
aggregationavg | sum | eop = "avg" | How finer series are aggregated: average, sum or end of period |
startstring | Only observations on or after this date |
endstring | Only observations on or before this date |
rebaseboolean = false | Index every series to 100 at the first date where all have a value (levels only) |
limitinteger = 60 | Most recent rows to return |
Use it from your agent
Add the TradingData MCP URL to Claude, ChatGPT, Cursor or any MCP client, then ask in plain words. The model sees this tool's description and calls it with the right parameters.
https://mcp.tradingdata.io