longbridge-hedging
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-hedging
longbridge-hedging
Design and evaluate hedging strategies for a portfolio or single position using Longbridge market data — from simple Beta hedges to options-based protection and cross-asset tail-risk hedges.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
使用Longbridge市场数据为投资组合或单一持仓设计并评估对冲策略——从简单的Beta对冲到基于期权的保护策略,再到跨资产尾部风险对冲。
回复语言:匹配用户输入语言——简体中文/繁体中文/英文。
When to use
适用场景
- "帮我设计组合对冲方案", "design a hedge for my portfolio", "幫我設計對冲方案"
- "NVDA 怎么用期权对冲", "how to hedge NVDA with options"
- "Beta 对冲比率怎么算", "calculate Beta hedge ratio"
- "领口策略怎么构建", "how to set up a collar strategy"
- "尾部风险对冲有哪些工具", "tail risk hedge instruments"
- "汇率风险怎么对冲", "how to hedge currency exposure"
For option pricing and Greeks, use . For portfolio-level P&L, use .
longbridge-derivativeslongbridge-portfolio- "帮我设计组合对冲方案", "design a hedge for my portfolio", "幫我設計對冲方案"
- "NVDA 怎么用期权对冲", "how to hedge NVDA with options"
- "Beta 对冲比率怎么算", "calculate Beta hedge ratio"
- "领口策略怎么构建", "how to set up a collar strategy"
- "尾部风险对冲有哪些工具", "tail risk hedge instruments"
- "汇率风险怎么对冲", "how to hedge currency exposure"
如需期权定价及希腊字母相关功能,请使用。如需投资组合层面的盈亏分析,请使用。
longbridge-derivativeslongbridge-portfolioWorkflow
工作流程
Step 1 — Identify hedge objective
步骤1 — 明确对冲目标
Clarify with the user:
- What is being hedged: single position, portfolio, or sector exposure?
- Risk to hedge: market Beta, tail event, currency, or volatility?
- Hedge horizon: days, weeks, or months?
- Cost tolerance: zero-cost (collar) or willing to pay premium?
与用户确认:
- 对冲标的:单一持仓、投资组合,还是行业敞口?
- 对冲风险:市场Beta、尾部事件、汇率,还是波动率?
- 对冲期限:数日、数周,还是数月?
- 成本容忍度:零成本(领口策略)还是愿意支付权利金?
Step 2 — Fetch data
步骤2 — 获取数据
bash
longbridge kline --help
longbridge option --helpbash
longbridge kline --help
longbridge option --helpBeta calculation (60-day daily returns)
Beta计算(60天日收益率)
longbridge kline <SYMBOL> --period day --count 60 --format json
longbridge kline <SYMBOL> --period day --count 60 --format json
Option chain for hedge instruments
对冲工具的期权链
longbridge option chain <SYMBOL> --format json
longbridge option chain <SYMBOL> --format json
Current portfolio positions (requires login with trade scope)
当前投资组合持仓(需要登录并拥有交易权限)
longbridge positions --format json
undefinedlongbridge positions --format json
undefinedStep 3 — Beta hedge
步骤3 — Beta对冲
Portfolio Beta:
β_portfolio = Σ(w_i × β_i)Compute individual Beta for each holding from 60-day returns vs benchmark (SPX / HSI / CSI300). Fetch benchmark kline with .
longbridge kline <BENCHMARK> --period day --count 60 --format jsonHedge ratio (index futures or inverse ETF):
Contracts needed = (Portfolio Value × β_portfolio) / (Futures Price × Contract Multiplier)Present: number of contracts, hedge cost, and residual Beta after hedge.
投资组合Beta:
β_portfolio = Σ(w_i × β_i)根据60天日收益率与基准指数(SPX / HSI / CSI300)的对比,计算每个持仓的单个Beta值。使用获取基准指数K线数据。
longbridge kline <BENCHMARK> --period day --count 60 --format json对冲比率(指数期货或反向ETF):
所需合约数量 = (投资组合价值 × β_portfolio) / (期货价格 × 合约乘数)输出:所需合约数量、对冲成本,以及对冲后的剩余Beta值。
Step 4 — Options-based protection
步骤4 — 基于期权的保护策略
Protective Put:
- Buy ATM or slightly OTM put on the underlying or index.
- Cost = put premium; protection kicks in below strike.
- Effective floor = Strike − Premium paid.
- Fetch available strikes: .
longbridge option chain <SYMBOL> --format json
Collar Strategy (zero-cost or near-zero):
- Buy OTM put (downside protection) + sell OTM call (cap upside).
- Net premium ≈ 0 if call premium offsets put premium.
- Present: put strike, call strike, net cost, max gain, max loss.
Selection criteria:
| Criterion | Protective Put | Collar |
|---|---|---|
| Upside retention | Full | Capped at call strike |
| Cost | Premium paid | Near zero |
| Best for | Bullish with hedge need | Neutral/mild bearish |
保护性看跌期权:
- 买入标的或指数的平值(ATM)或轻度虚值(OTM)看跌期权。
- 成本=看跌期权权利金;当价格低于行权价时启动保护。
- 有效止损价=行权价−已支付权利金。
- 获取可行权价:。
longbridge option chain <SYMBOL> --format json
领口策略(零成本或接近零成本):
- 买入虚值看跌期权(下行保护)+卖出虚值看涨期权(限制上行收益)。
- 如果看涨期权权利金抵消看跌期权权利金,净权利金≈0。
- 输出:看跌期权行权价、看涨期权行权价、净成本、最大收益、最大损失。
选择标准:
| 标准 | 保护性看跌期权 | 领口策略 |
|---|---|---|
| 上行收益保留 | 全部保留 | 上限为看涨期权行权价 |
| 成本 | 支付权利金 | 接近零 |
| 适用场景 | 看涨但需要对冲 | 中性/轻度看跌 |
Step 5 — Tail risk hedges
步骤5 — 尾部风险对冲
| Tool | Instrument | Mechanism |
|---|---|---|
| VIX calls | UVXY.US / VIX options | Profit from volatility spike |
| Gold | GLD.US / 518880.SH | Safe-haven in risk-off |
| Long-dated US Treasuries | TLT.US | Negative correlation with equities |
| Put on index | SPY puts / HSI puts | Direct market hedge |
Note: fetch current price and recent kline for any hedge instrument before recommending.
| 工具 | 标的 | 机制 |
|---|---|---|
| VIX看涨期权 | UVXY.US / VIX期权 | 从波动率飙升中获利 |
| 黄金 | GLD.US / 518880.SH | 风险规避时的避险资产 |
| 长期美国国债 | TLT.US | 与股票负相关 |
| 指数看跌期权 | SPY看跌期权 / HSI看跌期权 | 直接对冲市场风险 |
注意:在推荐前获取任何对冲工具的当前价格及近期K线数据。
Step 6 — Currency hedge
步骤6 — 汇率对冲
For HK/US cross-currency portfolios:
- USD/HKD is pegged — minimal FX risk.
- CNY exposure: use offshore RMB (CNH) forwards or futures.
- Non-HKD Asian exposure: fetch FX rate via (verify flag with
longbridge fx --format json).--help
Present notional hedge amount, instrument, tenor, and estimated cost.
对于港/美跨币种投资组合:
- USD/HKD采用联系汇率制——汇率风险极小。
- 人民币敞口:使用离岸人民币(CNH)远期或期货。
- 非港币亚洲币种敞口:通过获取汇率(使用
longbridge fx --format json验证参数)。--help
输出:名义对冲金额、工具、期限,以及预估成本。
Step 7 — Hedge cost assessment
步骤7 — 对冲成本评估
Cost efficiency = Protection value / Premium paidPresent: premium as % of protected notional, breakeven move, and expected cost per 1% of downside protection.
成本效率 = 保护价值 / 已支付权利金输出:权利金占受保护名义金额的百分比、盈亏平衡点变动幅度,以及每1%下行保护的预期成本。
CLI
命令行界面(CLI)
bash
longbridge kline --help
longbridge option --help
longbridge positions --help
longbridge kline <SYMBOL> --period day --count 60 --format json
longbridge option chain <SYMBOL> --format json
longbridge positions --format jsonbash
longbridge kline --help
longbridge option --help
longbridge positions --help
longbridge kline <SYMBOL> --period day --count 60 --format json
longbridge option chain <SYMBOL> --format json
longbridge positions --format jsonOutput
输出内容
Present:
- Hedge objective summary.
- Recommended strategy with rationale.
- Implementation details (strikes, contracts, premium).
- Cost vs protection table.
- Scenarios: portfolio value if market falls 10% / 20% with and without hedge.
- Caveats (basis risk, early exercise for American options, liquidity).
Always note: hedging reduces risk but also limits upside. This is not financial advice.
输出:
- 对冲目标摘要。
- 推荐策略及理由。
- 实施细节(行权价、合约数量、权利金)。
- 成本vs保护对比表。
- 场景分析:市场下跌10% / 20%时,有无对冲的投资组合价值。
- 注意事项(基差风险、美式期权提前行权、流动性)。
请注意:对冲会降低风险,但也会限制上行收益。本内容不构成财务建议。
Error handling
错误处理
| Situation | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 请安装 longbridge-terminal 或检查 MCP 配置。 | 請安裝 longbridge-terminal 或檢查 MCP 配置。 | Install longbridge-terminal or check MCP config. |
stderr: | 请运行 | 請執行 | Run |
| No option chain data | 该标的无期权数据,请尝试对应指数期权或 ETF 期权。 | 該標的無期權數據,請嘗試指數或 ETF 期權。 | No option chain for this symbol; try index or ETF options instead. |
| Negative or missing Beta | Beta 数据不足,将使用市值加权 Beta=1 作为默认值。 | Beta 數據不足,使用 Beta=1 作為默認值。 | Insufficient Beta data; defaulting to Beta = 1. |
| 场景 | 简体回复 | 繁体回复 | English reply |
|---|---|---|---|
| 请安装 longbridge-terminal 或检查 MCP 配置。 | 請安裝 longbridge-terminal 或檢查 MCP 配置。 | Install longbridge-terminal or check MCP config. |
stderr: | 请运行 | 請執行 | Run |
| No option chain data | 该标的无期权数据,请尝试对应指数期权或 ETF 期权。 | 該標的無期權數據,請嘗試指數或 ETF 期權。 | No option chain for this symbol; try index or ETF options instead. |
| Negative or missing Beta | Beta 数据不足,将使用市值加权 Beta=1 作为默认值。 | Beta 數據不足,使用 Beta=1 作為默認值。 | Insufficient Beta data; defaulting to Beta = 1. |
Related skills
相关技能
- — option quotes, Greeks, IV
longbridge-derivatives - — options strategy builder
longbridge-options-strategy - — portfolio P&L and exposure analysis
longbridge-portfolio - — portfolio risk metrics (VaR, drawdown)
longbridge-risk-analysis
- — 期权报价、希腊字母、隐含波动率(IV)
longbridge-derivatives - — 期权策略构建器
longbridge-options-strategy - — 投资组合盈亏及敞口分析
longbridge-portfolio - — 投资组合风险指标(VaR、回撤)
longbridge-risk-analysis
File layout
文件结构
skills/longbridge-hedging/
└── SKILL.mdskills/longbridge-hedging/
└── SKILL.md