Skip to main content
command CX Codex official · Anthropic

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-services
Open on GitHub

What 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 FGBLc1
  • analyze-bond-basis TYc1
  • analyze-bond-basis FFIc1

How to install analyze-bond-basis

1Plugin marketplace

/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-services

2Manually: put the files in place

.claude/commands/analyze-bond-basis.md

Call it with /analyze-bond-basis. For all projects use ~/.claude/commands/

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

Similar slash commands

All slash commands for Finance and business →

From the same set116

The whole set →
analyze-swap-curve The analyze-swap-curve Claude Code command analyzes swap curves against government yields and inflation breakevens. It calculates spreads and curve metrics, then identifies possible trades. CX Codex +1 ★ 41,441repo stars analyze-option-vol The analyze-option-vol Claude Code command analyzes option volatility through volatility surfaces, Greeks, and an implied-versus-realized comparison. For FX pairs, it selects a separate surface tool. CX Codex +1 ★ 41,441repo stars analyze-fx-carry The analyze-fx-carry Claude Code command evaluates FX carry for a currency pair using forwards, volatility, and historical pricing. Give it a pair to get a tenor-by-tenor carry profile and a summary report. CX Codex +1 ★ 41,441repo stars analyze-bond-rv analyze-bond-rv — a Claude Code command for relative value bond analysis against yield and credit spread curves. It runs parallel rate shock scenarios and determines rich or cheap valuation. CX Codex +1 ★ 41,441repo stars valuation-reviewer valuation-reviewer — a Claude Code subagent reviews fund portfolio valuations and prepares LP reporting materials. It handles quarter-end valuation reviews, not deal-time underwriting. CX Codex ★ 41,441repo stars statement-auditor statement-auditor — a subagent for Claude Code that audits batches of LP capital-account statements before distribution. It reconciles balances, allocations, and fees against the fund NAV pack. CX Codex ★ 41,441repo stars pitch-agent pitch-agent is a Claude Code subagent that drafts an investment pitch from a target company and its strategic situation. It builds valuation materials and fills a bank PowerPoint template. CX Codex ★ 41,441repo stars month-end-closer month-end-closer — a subagent for Claude Code that automates financial period-end closing. It generates documentation packages for controller review, including accruals and variance commentary. CX Codex ★ 41,441repo stars

Project sponsors

Companies that keep this analytics open