longbridge-options-pnl
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-options-pnl
longbridge-options-pnl
Prompt-only analysis skill. Fetches live option quotes, then computes and explains payoff diagrams, breakevens, max profit/loss, and Greeks sensitivities for single-leg and multi-leg option positions.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
仅基于提示词的分析Skill。获取实时期权报价,然后计算并解释单腿和多腿期权头寸的盈亏图、盈亏平衡点、最大盈利/亏损以及Greeks敏感性。
回复语言:匹配用户输入语言——简体中文 / 繁体中文 / 英文。
When to use
使用场景
- "AAPL 200 call 的盈亏平衡点在哪" / "AAPL 200 call 盈虧平衡在哪" / "What is the breakeven on AAPL 200 call?"
- "我卖出一个 TSLA put,最大亏损多少" / "I sold a TSLA put, what is my max loss?"
- "帮我算跨式组合的到期盈亏" / "Show me the straddle payoff at expiry"
- "这个期权的 Theta 每天损耗多少" / "How much Theta decay per day?"
For vol surface and IV analysis route to . For strategy selection route to .
longbridge-options-volatilitylongbridge-options-strategy- "AAPL 200 call 的盈亏平衡点在哪" / "AAPL 200 call 盈虧平衡在哪" / "What is the breakeven on AAPL 200 call?"
- "我卖出一个 TSLA put,最大亏损多少" / "I sold a TSLA put, what is my max loss?"
- "帮我算跨式组合的到期盈亏" / "Show me the straddle payoff at expiry"
- "这个期权的 Theta 每天损耗多少" / "How much Theta decay per day?"
如需波动率曲面和隐含波动率(IV)分析,请使用。如需策略选择,请使用。
longbridge-options-volatilitylongbridge-options-strategyCLI
CLI
Run to verify exact flags.
longbridge <subcommand> --helpbash
undefined运行查看具体参数。
longbridge <subcommand> --helpbash
undefinedFetch option quote (IV, Greeks, premium) for a known OCC symbol
Fetch option quote (IV, Greeks, premium) for a known OCC symbol
longbridge option quote <OCC_SYMBOL> --format json
longbridge option quote <OCC_SYMBOL> --format json
Discover OCC symbol from underlying + expiry
Discover OCC symbol from underlying + expiry
longbridge option chain <SYMBOL> --format json
longbridge option chain <SYMBOL> --date <YYYY-MM-DD> --format json
longbridge option chain <SYMBOL> --format json
longbridge option chain <SYMBOL> --date <YYYY-MM-DD> --format json
Underlying spot price for payoff x-axis range
Underlying spot price for payoff x-axis range
longbridge quote <SYMBOL> --format json
undefinedlongbridge quote <SYMBOL> --format json
undefinedWorkflow
工作流程
- Identify legs — extract each leg: side (buy/sell), type (call/put), strike, expiry, quantity, premium paid/received.
- Fetch live data — call for each OCC symbol; if not known, use
longbridge option quoteto find it. Fetch underlying spot withoption chain.longbridge quote - Compute at-expiry payoff for each leg:
- Long call:
max(S − K, 0) − premium - Short call:
premium − max(S − K, 0) - Long put:
max(K − S, 0) − premium - Short put:
premium − max(K − S, 0) - Net payoff = sum across all legs.
- Long call:
- Find breakeven(s) — stock price(s) where net payoff = 0.
- Find max profit and max loss — scan payoff at key price points (strikes + beyond).
- Summarise Greeks from output; compute net Greeks for multi-leg.
option quote - Output payoff table + summary (template below).
- 识别头寸腿 — 提取每条腿的信息:方向(买/卖)、类型(认购/认沽期权)、行权价、到期日、数量、支付/收到的权利金。
- 获取实时数据 — 为每个OCC合约代码调用;若合约代码未知,使用
longbridge option quote查找。通过option chain获取标的现货价格。longbridge quote - 计算到期时的盈亏:
- 认购期权多头:
max(S − K, 0) − premium - 认购期权空头:
premium − max(S − K, 0) - 认沽期权多头:
max(K − S, 0) − premium - 认沽期权空头:
premium − max(K − S, 0) - 净盈亏 = 所有头寸腿的盈亏之和。
- 认购期权多头:
- 查找盈亏平衡点 — 净盈亏为0时的股票价格。
- 查找最大盈利和最大亏损 — 扫描关键价格点(行权价及以外)的盈亏情况。
- 汇总Greeks数据 — 从输出中提取;计算多腿头寸的净Greeks。
option quote - 输出结果 — 盈亏表格 + 总结(模板如下)。
Output template
输出模板
{Strategy name} P&L snapshot — Source: Longbridge Securities
[Position]
Leg 1: {Buy/Sell} {N} {SYMBOL} {YYMMDD} {C/P} K={strike} Premium={prem}
...
[Payoff at expiry]
S Net P&L
{S-30%} {$X}
{S-15%} {$X}
{ATM} {$X} ← current spot
{S+15%} {$X}
{S+30%} {$X}
[Key metrics]
- Breakeven: ${X} [and ${Y} for two-sided strategies]
- Max profit: ${X} {at S ≥/≤ $Y / unlimited}
- Max loss: ${X} {at S ≤/≥ $Y / unlimited}
[Net Greeks (current)]
- Delta: {X} (position moves ~${X} per $1 in underlying)
- Gamma: {X}
- Theta: {X} / day (time decay per calendar day)
- Vega: {X} / 1% IV change
⚠️ 以上分析仅供参考,不构成投资建议。/ 以上分析僅供參考,不構成投資建議。/ For reference only. Not investment advice.{Strategy name} P&L snapshot — Source: Longbridge Securities
[Position]
Leg 1: {Buy/Sell} {N} {SYMBOL} {YYMMDD} {C/P} K={strike} Premium={prem}
...
[Payoff at expiry]
S Net P&L
{S-30%} {$X}
{S-15%} {$X}
{ATM} {$X} ← current spot
{S+15%} {$X}
{S+30%} {$X}
[Key metrics]
- Breakeven: ${X} [and ${Y} for two-sided strategies]
- Max profit: ${X} {at S ≥/≤ $Y / unlimited}
- Max loss: ${X} {at S ≤/≥ $Y / unlimited}
[Net Greeks (current)]
- Delta: {X} (position moves ~${X} per $1 in underlying)
- Gamma: {X}
- Theta: {X} / day (time decay per calendar day)
- Vega: {X} / 1% IV change
⚠️ 以上分析仅供参考,不构成投资建议。/ 以上分析僅供參考,不構成投資建議。/ For reference only. Not investment advice.Error handling
错误处理
| Situation | 简体回复 | 繁體回復 | English reply |
|---|---|---|---|
| 切换到 MCP;若不可用,请安装 longbridge-terminal | 切換至 MCP;若不可用,請安裝 longbridge-terminal | Fall back to MCP; if unavailable, install longbridge-terminal |
stderr | 请执行 | 請執行 | Run |
| OCC symbol not found in chain | 请提供到期日和行权价以便查找合约 | 請提供到期日和行權價以便查找合約 | Please provide expiry and strike to locate the contract |
| Greeks missing from quote | 从 Black-Scholes 近似计算,精度有限 | 從 Black-Scholes 近似計算,精度有限 | Approximated via Black-Scholes; limited accuracy |
| 场景 | 简体回复 | 繁體回復 | English reply |
|---|---|---|---|
| 切换到 MCP;若不可用,请安装 longbridge-terminal | 切換至 MCP;若不可用,請安裝 longbridge-terminal | Fall back to MCP; if unavailable, install longbridge-terminal |
stderr | 请执行 | 請執行 | Run |
| OCC symbol not found in chain | 请提供到期日和行权价以便查找合约 | 請提供到期日和行權價以便查找合約 | Please provide expiry and strike to locate the contract |
| Greeks missing from quote | 从 Black-Scholes 近似计算,精度有限 | 從 Black-Scholes 近似計算,精度有限 | Approximated via Black-Scholes; limited accuracy |
MCP fallback
MCP 备选方案
| CLI command | MCP tool |
|---|---|
| |
| |
| |
| |
| CLI 命令 | MCP 工具 |
|---|---|
| |
| |
| |
| |
Related skills
相关Skill
- IV / vol analysis →
longbridge-options-volatility - Strategy selection →
longbridge-options-strategy - Advanced vol strategies →
longbridge-options-advanced - Raw option chain / quotes →
longbridge-derivatives
- IV / 波动率分析 →
longbridge-options-volatility - 策略选择 →
longbridge-options-strategy - 高级波动率策略 →
longbridge-options-advanced - 原始期权链 / 报价 →
longbridge-derivatives
File layout
文件结构
longbridge-options-pnl/
└── SKILL.md # prompt-only, no scripts/longbridge-options-pnl/
└── SKILL.md # prompt-only, no scripts/