macro-rates — Claude Code command: what it does, how to install
The macro-rates Claude Code command builds a macro and rates dashboard for a selected country. It covers economic indicators, yield curves, real rates, and swap spreads.
Apache-2.0 ★ 41,441 updated 2026-09-21
/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-servicesWhat macro-rates does
The command assembles a macroeconomic and rates dashboard for a country. It includes GDP, inflation, unemployment, and the policy rate, plus a government yield curve with slope analysis. A historical period can be supplied; the default is 3Y.
For real rates, it compares nominal yields with inflation breakevens. It also measures swap spreads against government yields at 2Y, 5Y, and 10Y, then adds historical context for the benchmark yield. The workflow uses LSEG macroeconomic data and connector tools for curves, swaps, and historical pricing.
What it helps with
- assemble a country’s macro indicators in one dashboard
- compare yield-curve slopes across maturities
- derive real rates from inflation breakevens
- measure swap spreads against government yields
- place current yields in their historical range
Example prompts for the agent
- Build a macro and rates dashboard for US over 5Y.
- Show the yield curve, real rates, and swap spreads for DE.
- Compare macro indicators and historical yields for GB over 3Y.
How to install macro-rates
1Plugin marketplace
/plugin marketplace add anthropics/financial-services/plugin install lseg@claude-for-financial-services2Manually: put the files in place
.claude/commands/macro-rates.mdCall it with /macro-rates. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/macro-rates.mdCall it with /prompts:macro-rates. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/macro-rates.prompt.mdManually: put the files in place
.gemini/commands/macro-rates.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about macro-rates
How do I install macro-rates in Claude Code?
Add the marketplace with /plugin marketplace add anthropics/financial-services, then install the plugin with /plugin install lseg@claude-for-financial-services. The command file is at .claude/commands/macro-rates.md.
What does macro-rates do?
It creates a country-level macro and rates dashboard, covering economic indicators, yield-curve slopes, real rates, swap spreads, and historical yield context.
What does macro-rates need to run?
It uses LSEG macroeconomic data and connector tools for rate and inflation curves, swap pricing, and historical prices.
Source text
macro-rates.md · Apache-2.0
--- description: Build a macro and rates dashboard with economic indicators, yield curves, inflation, and swap spreads argument-hint: "<country e.g. US> [timeframe e.g. 5Y]" --- # Macro & Rates Dashboard > This command uses LSEG macroeconomic data, yield curves, inflation curves, swap pricing, and historical data tools. See [CONNECTORS.md](../CONNECTORS.md) for available tools. Build a comprehensive macroeconomic and rates dashboard showing key economic indicators, the yield curve with slope analysis, real rate decomposition, and swap spread context. See the **macro-rates-monitor** skill for domain knowledge on macro-rates analysis. ## Workflow ### 1. Gather Input Ask the user for: - Country (required) — e.g., US, DE, GB, JP, CH - Timeframe for historical series (optional, default 3Y) - Any specific indicators of interest (optional) Map country to currency: US→USD, DE→EUR, GB→GBP, JP→JPY. ### 2. Pull Macro Indicators Call `qa_macroeconomic` for key indicators: - GDP growth (quarterly series) - CPI/inflation (monthly series) - Unemployment rate (monthly series) - Policy rate / central bank rate Use wildcard mnemonic patterns to discover available series (e.g., "US\*GDP\*", "US\*CPI\*"). ### 3. Get the Yield Curve Call `interest_rate_curve` (list then calculate) for the country's government curve. Extract yields at standard tenors. Compute: 2s10s slope, 3M-10Y slope, 5s30s slope. Classify curve shape. ### 4. Decompose Real Rates Call `inflation_curve` (search then calculate) for the currency. Compute real rate = nominal minus breakeven at key tenors. Assess whether real rates are accommodative or restrictive. ### 5. Swap Spread Analysis Call `ir_swap` (list then price) at 2Y, 5Y, 10Y. Compute swap spread = swap rate minus government yield at each tenor. Assess financial conditions. ### 6. Historical Yield Context Call `tscc_historical_pricing_summaries` for the benchmark yield RIC with the user's timeframe. Assess: where current yields sit in the historical range, trend direction. ### 7. Synthesize the Dashboard Present: macro summary table, yield curve with slope metrics, real rate decomposition, swap spread table, historical context, and overall macro-rates assessment (2-3 sentences). ## Output Format Present as a dashboard with clearly labeled sections. Lead with the overall macro assessment, then detail each component.
© LSEG · Apache-2.0 · anthropics/financial-services