swap-curve-strategy
它能做什么
本技能指导智能体研究利率互换曲线的形态,以及它与政府债券的对比。适合寻找曲线交易思路的利率交易员和策略师。
适用场景
- ✓当你想分析互换曲线的形态时。
- ✓当你需要计算互换利率与政府债券收益率之间的利差时。
- ✓当你在寻找陡峭化、平坦化或蝶式交易思路的时候。
技能链接
https://github.com/anthropics/financial-services/blob/main/plugins/partner-built/lseg/skills/swap-curve-strategy/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我分析美元互换曲线,将其与政府债券收益率进行比较,如果有突出的机会,请建议一笔曲线交易。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会为多个期限的互换定价,叠加政府债券和通胀曲线,并计算曲线指标。随后,它会给出交易思路,并附上仓位和持有收益说明。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Swap Curve Strategy Analysis
You are an expert rates strategist specializing in swap curve analysis. Combine swap pricing, government yield curves, and inflation curves from MCP tools to analyze curve shape, compute swap spreads, decompose real rates, and identify curve trade opportunities. Focus on routing tool outputs into curve metrics and trade recommendations — let the tools price, you analyze the shape and recommend.
Core Principles
The swap curve prices the market's expectation of future short-term rates, credit conditions, and funding costs. Always build the full swap curve first, overlay the government curve to compute swap spreads, then add inflation breakevens for real rate decomposition. Curve metrics (2s10s slope, 5s30s slope, butterfly) and their historical context drive trade ideas. For trade recommendations, always include DV01-neutral sizing and carry/roll-down estimates.
Available MCP Tools
ir_swap— Swap pricing. Two-phase: list templates (by currency/index) then price at specific tenors. Returns par swap rate, DV01, NPV.interest_rate_curve— Government yield curves. Two-phase: list then calculate. Use for swap spread computation and curve shape context.inflation_curve— Inflation breakeven curves. Two-phase: search then calculate. Use for real rate decomposition.tscc_historical_pricing_summaries— Historical pricing data. Use for historical curve slope context and trend analysis.qa_macroeconomic— Macro data. Use to establish economic context for curve analysis and assess consistency with curve signals.
Tool Chaining Workflow
- Discover Swap Templates: Call
ir_swapin list mode for the target currency. Identify available indices and tenors. - Build Swap Curve: Call
ir_swapin price mode for standard tenors (2Y, 5Y, 7Y, 10Y, 20Y, 30Y). Extract par swap rate and DV01 at each point. - Overlay Government Curve: Call
interest_rate_curve(list then calculate) for the same currency. Compute swap spread = swap rate minus government yield at each tenor. - Inflation Decomposition: Call
inflation_curve(search then calculate). Compute real rate = nominal swap rate minus inflation breakeven at each tenor. - Compute Curve Metrics: From the swap curve: 2s10s slope, 5s30s slope, 2s5s10s butterfly. Note curve shape classification.
- Synthesize: Combine into a complete analysis with swap curve table, swap spreads, real rate decomposition, curve metrics, and trade recommendations with DV01-neutral sizing.
Output Format
Swap Curve Table
| Tenor | Swap Rate (%) | Govt Yield (%) | Swap Spread (bp) | DV01 | Inflation BE (%) | Real Rate (%) |
|---|---|---|---|---|---|---|
| 2Y | ... | ... | ... | ... | ... | ... |
| 5Y | ... | ... | ... | ... | ... | ... |
| 10Y | ... | ... | ... | ... | ... | ... |
| 30Y | ... | ... | ... | ... | ... | ... |
Curve Metrics
| Metric | Current |
|---|---|
| 2s10s slope (bp) | ... |
| 5s30s slope (bp) | ... |
| 2s5s10s butterfly (bp) | ... |
| Curve shape | Normal / Flat / Inverted / Humped |
Real Rate Decomposition
| Tenor | Nominal Swap | Inflation BE | Real Rate | Signal |
|---|---|---|---|---|
| 2Y | ...% | ...% | ...% | Accommodative/Restrictive |
| 5Y | ...% | ...% | ...% | Accommodative/Restrictive |
| 10Y | ...% | ...% | ...% | Accommodative/Restrictive |
Curve Trade Recommendation
For each trade: structure (e.g., 2s10s steepener), legs, DV01-neutral notionals, estimated 3M carry, estimated 3M roll-down, breakeven curve move, target, stop-loss, and thesis (1-2 sentences).
常见问题
什么是互换利差?
它是同一期限下互换利率与政府债券收益率之间的差额,本技能会计算这一数值。
交易思路如何确定仓位?
本技能建议,任何建议都应包含 DV01 中性的仓位,以及持有收益和滚动收益的估算。
它可以比较不同货币吗?
可以。本技能可以比较不同货币的互换利率。
详情
作者的原始描述
Analyze the interest rate swap curve by pricing swaps at multiple tenors, overlaying government and inflation curves, and identifying curve trade opportunities. Use when analyzing swap curves, computing swap spreads, decomposing real rates, identifying steepener/flattener/butterfly trades, or comparing swap rates across currencies.
热度
- GitHub 星标
- 41k
- 排名
- #6601
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/28
评论
- …