longbridge-hedging

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-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
longbridge-derivatives
. For portfolio-level P&L, use
longbridge-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-derivatives
。如需投资组合层面的盈亏分析,请使用
longbridge-portfolio

Workflow

工作流程

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 --help
bash
longbridge kline --help
longbridge option --help

Beta 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
undefined
longbridge positions --format json
undefined

Step 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 json
.
Hedge 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值。使用
longbridge kline <BENCHMARK> --period day --count 60 --format json
获取基准指数K线数据。
对冲比率(指数期货或反向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:
CriterionProtective PutCollar
Upside retentionFullCapped at call strike
CostPremium paidNear zero
Best forBullish with hedge needNeutral/mild bearish
保护性看跌期权:
  • 买入标的或指数的平值(ATM)或轻度虚值(OTM)看跌期权。
  • 成本=看跌期权权利金;当价格低于行权价时启动保护。
  • 有效止损价=行权价−已支付权利金。
  • 获取可行权价:
    longbridge option chain <SYMBOL> --format json
领口策略(零成本或接近零成本):
  • 买入虚值看跌期权(下行保护)+卖出虚值看涨期权(限制上行收益)。
  • 如果看涨期权权利金抵消看跌期权权利金,净权利金≈0。
  • 输出:看跌期权行权价、看涨期权行权价、净成本、最大收益、最大损失。
选择标准:
标准保护性看跌期权领口策略
上行收益保留全部保留上限为看涨期权行权价
成本支付权利金接近零
适用场景看涨但需要对冲中性/轻度看跌

Step 5 — Tail risk hedges

步骤5 — 尾部风险对冲

ToolInstrumentMechanism
VIX callsUVXY.US / VIX optionsProfit from volatility spike
GoldGLD.US / 518880.SHSafe-haven in risk-off
Long-dated US TreasuriesTLT.USNegative correlation with equities
Put on indexSPY puts / HSI putsDirect 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
    longbridge fx --format json
    (verify flag with
    --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 paid
Present: 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 json
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 json

Output

输出内容

Present:
  1. Hedge objective summary.
  2. Recommended strategy with rationale.
  3. Implementation details (strikes, contracts, premium).
  4. Cost vs protection table.
  5. Scenarios: portfolio value if market falls 10% / 20% with and without hedge.
  6. Caveats (basis risk, early exercise for American options, liquidity).
Always note: hedging reduces risk but also limits upside. This is not financial advice.
输出:
  1. 对冲目标摘要。
  2. 推荐策略及理由。
  3. 实施细节(行权价、合约数量、权利金)。
  4. 成本vs保护对比表。
  5. 场景分析:市场下跌10% / 20%时,有无对冲的投资组合价值。
  6. 注意事项(基差风险、美式期权提前行权、流动性)。
请注意:对冲会降低风险,但也会限制上行收益。本内容不构成财务建议。

Error handling

错误处理

Situation简体回复繁體回覆English reply
command not found: longbridge
请安装 longbridge-terminal 或检查 MCP 配置。請安裝 longbridge-terminal 或檢查 MCP 配置。Install longbridge-terminal or check MCP config.
stderr:
not logged in
请运行
longbridge auth login
(需 Trade 权限查看持仓)。
請執行
longbridge auth login
(需 Trade 權限查看持倉)。
Run
longbridge auth login
(Trade scope needed for positions).
No option chain data该标的无期权数据,请尝试对应指数期权或 ETF 期权。該標的無期權數據,請嘗試指數或 ETF 期權。No option chain for this symbol; try index or ETF options instead.
Negative or missing BetaBeta 数据不足,将使用市值加权 Beta=1 作为默认值。Beta 數據不足,使用 Beta=1 作為默認值。Insufficient Beta data; defaulting to Beta = 1.
场景简体回复繁体回复English reply
command not found: longbridge
请安装 longbridge-terminal 或检查 MCP 配置。請安裝 longbridge-terminal 或檢查 MCP 配置。Install longbridge-terminal or check MCP config.
stderr:
not logged in
请运行
longbridge auth login
(需 Trade 权限查看持仓)。
請執行
longbridge auth login
(需 Trade 權限查看持倉)。
Run
longbridge auth login
(Trade scope needed for positions).
No option chain data该标的无期权数据,请尝试对应指数期权或 ETF 期权。該標的無期權數據,請嘗試指數或 ETF 期權。No option chain for this symbol; try index or ETF options instead.
Negative or missing BetaBeta 数据不足,将使用市值加权 Beta=1 作为默认值。Beta 數據不足,使用 Beta=1 作為默認值。Insufficient Beta data; defaulting to Beta = 1.

Related skills

相关技能

  • longbridge-derivatives
    — option quotes, Greeks, IV
  • longbridge-options-strategy
    — options strategy builder
  • longbridge-portfolio
    — portfolio P&L and exposure analysis
  • longbridge-risk-analysis
    — portfolio risk metrics (VaR, drawdown)
  • longbridge-derivatives
    — 期权报价、希腊字母、隐含波动率(IV)
  • longbridge-options-strategy
    — 期权策略构建器
  • longbridge-portfolio
    — 投资组合盈亏及敞口分析
  • longbridge-risk-analysis
    — 投资组合风险指标(VaR、回撤)

File layout

文件结构

skills/longbridge-hedging/
└── SKILL.md
skills/longbridge-hedging/
└── SKILL.md