analyze-bond-basis — Claude Code command: what it does, how to install
The analyze-bond-basis command for Claude Code analyzes bond futures basis. It assesses trading opportunities by identifying cheapest-to-deliver bonds and calculating implied repo rates.
Apache-2.0 ★ 41,441 updated 2026-09-21
/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-servicesWhat analyze-bond-basis does
This command performs a detailed analysis of bond futures basis. It prices the future, identifies the cheapest-to-deliver (CTD) bond, and computes both gross and net basis.
The command relies on LSEG bond future pricing, bond pricing, yield curves, and historical data tools. These LSEG tools are necessary for its operation. It calculates the implied repo rate, comparing it to the market repo, and tracks historical basis data to assess trends and volatility.
The final output includes a future summary table, CTD bond analytics, a basis calculation table (gross/net basis, implied repo vs. market repo), historical context, and a trade recommendation (long basis, short basis, or neutral).
What it helps with
- Assess bond futures basis
- Identify the cheapest-to-deliver (CTD) bond
- Compute implied repo rates
- Analyze historical basis trends
- Generate basis trade recommendations
Example prompts for the agent
analyze-bond-basis FGBLc1analyze-bond-basis TYc1analyze-bond-basis FFIc1
How to install analyze-bond-basis
1Plugin marketplace
/plugin marketplace add anthropics/financial-services/plugin install lseg@claude-for-financial-services2Manually: put the files in place
.claude/commands/analyze-bond-basis.mdCall it with /analyze-bond-basis. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/analyze-bond-basis.mdCall it with /prompts:analyze-bond-basis. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/analyze-bond-basis.prompt.mdManually: put the files in place
.gemini/commands/analyze-bond-basis.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about analyze-bond-basis
How to install analyze-bond-basis in Claude Code?
To install in Claude Code, first add the repository: /plugin marketplace add anthropics/financial-services. Then install the plugin: /plugin install lseg@claude-for-financial-services. The command will be available via the .claude/commands/analyze-bond-basis.md file.
What does the analyze-bond-basis command do?
The analyze-bond-basis command analyzes bond futures basis. It identifies the cheapest-to-deliver (CTD) bond, calculates the implied repo rate, and evaluates trading opportunities by providing a trade recommendation.
What is required for analyze-bond-basis to work?
The command requires LSEG tools for bond future pricing, bond pricing, yield curves, and historical data access. These tools are essential for its functionality.
Source text
analyze-bond-basis.md · Apache-2.0
--- description: Analyze the bond futures basis with CTD identification, implied repo rate, and basis trade assessment argument-hint: "<bond future RIC e.g. FGBLc1>" --- # Analyze Bond Futures Basis > This command uses LSEG bond future pricing, bond pricing, yield curves, and historical data tools. See [CONNECTORS.md](../CONNECTORS.md) for available tools. Analyze the bond futures basis by pricing the future, identifying the cheapest-to-deliver bond, computing gross and net basis, and assessing basis trade opportunities. See the **bond-futures-basis** skill for domain knowledge on basis mechanics and trading strategies. ## Workflow ### 1. Gather Input Ask the user for: - Bond future RIC (required) — e.g., FGBLc1 (Euro Bund), TYc1 (US 10Y Note), FFIc1 (UK Gilt) - Market data date (optional, defaults to today) ### 2. Price the Bond Future Call `bond_future_price` with the future RIC. Extract: fair price, CTD bond identifier, delivery basket with conversion factors, contract DV01, delivery dates. ### 3. Price the CTD Bond Call `bond_price` for the CTD identifier from Step 2. Extract: clean/dirty price, yield, duration, DV01, accrued interest, coupon. Compute: gross basis, invoice price, carry, net basis. ### 4. Compute Implied Repo Rate Call `interest_rate_curve` (list then calculate) for the future's currency. Use short-end rate as repo proxy. Compute implied repo rate and compare to market repo. ### 5. Track Historical Basis Call `tscc_historical_pricing_summaries` for both the future and CTD bond with `tenor: "3M"`, `interval: "P1D"`. Assess: basis trend, volatility, and historical range. ### 6. Sovereign Credit Context Call `credit_curve` for the relevant sovereign (e.g., "DE" for Bund, "US" for Treasury). ### 7. Synthesize the Report Present: future summary table, CTD bond analytics, basis calculation table (gross/net basis, implied repo vs market repo), historical context, and trade recommendation (long basis / short basis / neutral). ## Output Format Lead with the basis trade assessment (long/short/neutral) and implied repo comparison. Follow with detailed analytics tables.
© LSEG · Apache-2.0 · anthropics/financial-services