longbridge-derivatives
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-derivatives
longbridge-derivatives
Options (US / HK) and HK warrants. Underlying-stock quotes belong in .
longbridge-quoteResponse language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
美股/港股期权及港股窝轮服务。标的股票报价请使用。
longbridge-quote响应语言:匹配用户输入语言——简体中文/繁体中文/英文。
Subcommands
子命令
andoptionare parent commands; each has its own sub-subcommands. Runwarrant/longbridge option --helpto see the current sub-subcommand list and their flags.longbridge warrant --help
| CLI command | Returns |
|---|---|
| Quote(s) for one or more option contracts (OCC symbols). Includes IV, delta, strike, expiry. |
| Available expiry dates for the underlying. |
| Strikes for a specific expiry — each row gives |
| Real-time call / put volume snapshot (use |
| Default warrants list for an underlying (HK only). |
| Quote(s) for HK warrants (leverage, IV, etc.). |
| Directory of HK warrant issuers. |
和option是父命令;各自拥有子子命令。运行warrant/longbridge option --help查看当前子子命令列表及其参数。longbridge warrant --help
| CLI命令 | 返回内容 |
|---|---|
| 一个或多个期权合约(OCC代码)的报价信息,包括IV、delta、行权价、到期日。 |
| 标的对应的可用到期日列表。 |
| 指定到期日的行权价列表——每行包含 |
| 认购/认沽期权实时成交量快照(使用 |
| 标的对应的默认窝轮列表(仅支持港股)。 |
| 港股窝轮报价信息(包括杠杆、IV等)。 |
| 港股窝轮发行机构名录。 |
OCC option symbol
OCC期权代码格式
Format: . Example: = AAPL, expires 2024-01-19, Call, strike $190.00.
<TICKER><YYMMDD><C|P><STRIKE×1000, 8 digits>AAPL240119C190000格式:。示例: = 苹果公司(AAPL),到期日2024-01-19,认购期权(Call),行权价190.00美元。
<股票代码><YYMMDD><C|P><行权价×1000,8位数字>AAPL240119C190000Two-step option discovery
期权查询两步法
| User input | Strategy |
|---|---|
| Full OCC symbol | |
| Underlying + expiry + strike + call/put | |
| Underlying + window only | |
| 用户输入 | 处理策略 |
|---|---|
| 完整OCC代码 | 直接执行 |
| 标的+到期日+行权价+认购/认沽 | 先通过 |
| 仅标的+时间范围 | 用 |
Term mapping
术语对应表
| User says | Term |
|---|---|
| 认购证 / 牛证 / call | Call |
| 认沽证 / 熊证 / put | Put |
| 行权价 / strike | Strike |
| 到期日 / expiry | Expiry |
| 隐含波动率 / IV | Implied volatility |
| 用户表述 | 对应术语 |
|---|---|
| 认购证 / 牛证 / call | Call(认购期权) |
| 认沽证 / 熊证 / put | Put(认沽期权) |
| 行权价 / strike | Strike(行权价) |
| 到期日 / expiry | Expiry(到期日) |
| 隐含波动率 / IV | Implied volatility(隐含波动率) |
CLI
CLI示例
bash
longbridge option quote AAPL250117C190000 AAPL250117P190000 --format json
longbridge option chain AAPL.US --format json
longbridge option chain AAPL.US --date 2025-01-17 --format json
longbridge option volume AAPL.US --format json
longbridge warrant 700.HK --format json
longbridge warrant quote 12345.HK --format json
longbridge warrant issuers --format jsonbash
longbridge option quote AAPL250117C190000 AAPL250117P190000 --format json
longbridge option chain AAPL.US --format json
longbridge option chain AAPL.US --date 2025-01-17 --format json
longbridge option volume AAPL.US --format json
longbridge warrant 700.HK --format json
longbridge warrant quote 12345.HK --format json
longbridge warrant issuers --format jsonOutput (per subcommand)
各子命令输出格式
- : array of contract rows (each: IV, delta, strike, expiry, …).
option quote - (no date): array of
option chain.{expiry_date} - : array of
option chain --date.{strike, call_symbol, put_symbol, standard} - : real-time call / put volume snapshot.
option volume - : array of warrant rows for that underlying.
warrant <UNDERLYING> - : array of quote rows.
warrant quote - : array of
warrant issuers.{id, name_(cn), name_(en)}
- :合约信息数组(每条包含IV、delta、行权价、到期日等)。
option quote - (无日期参数):
option chain数组。{expiry_date} - :
option chain --date数组。{strike, call_symbol, put_symbol, standard} - :认购/认沽期权实时成交量快照。
option volume - :该标的对应的窝轮信息数组(仅港股)。
warrant <UNDERLYING> - :窝轮报价信息数组。
warrant quote - :
warrant issuers数组。{id, name_(cn), name_(en)}
When to clarify
需要澄清的场景
- Warrant query on a non-HK underlying → tell the user "warrants are HK-only" and route appropriately.
- Long strike list (>30) → present near-the-money strikes only.
- IV / Greeks during off-hours → may be a previous-session snapshot; mention this if the user asks for "real-time".
- 针对非港股标的查询窝轮 → 告知用户“窝轮仅支持港股”并进行相应引导。
- 行权价列表过长(超过30条)→ 仅展示平值附近的行权价。
- 非交易时段查询IV/希腊字母 → 数据可能为上一交易日快照;若用户要求“实时”数据,需说明此情况。
MCP fallback
MCP备选方案
| CLI subcommand | MCP tool |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| CLI子命令 | MCP工具 |
|---|---|
| |
| |
| |
| |
| |
| |
| |
Error handling
错误处理
If is missing, fall back to MCP. "no quote access" on indicates the account lacks the options market-data subscription — surface the message verbatim and tell the user to upgrade quote permissions on Longbridge.
longbridgeoption quote若不可用, fallback至MCP。返回*"no quote access"*表示账户未订阅期权市场数据权限——直接显示该提示信息,并告知用户需在长桥证券升级行情权限。
longbridgeoption quoteRelated skills
相关技能
- Underlying quote / static →
longbridge-quote - Underlying candlesticks →
longbridge-kline - Underlying orderbook depth →
longbridge-depth
- 标的报价/静态信息 →
longbridge-quote - 标的K线数据 →
longbridge-kline - 标的深度盘口 →
longbridge-depth
File layout
文件结构
longbridge-derivatives/
└── SKILL.md # prompt-only, no scripts/longbridge-derivatives/
└── SKILL.md # 仅提示文件,无scripts/目录