longbridge-quote
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-quote
longbridge-quote
Real-time quote, static info, and valuation indices for Longbridge-supported securities (HK / US / A-share / Singapore).
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
通过Longbridge Securities获取支持的证券(港股/美股/A股/新加坡股)的实时报价、静态信息及估值指标。
响应语言:匹配用户输入语言——简体中文/繁体中文/英文。
When to use
使用场景
Trigger on prompts asking about:
- Current price / change / volume — "NVDA 现在多少钱", "現在股價", "What's NVDA's price?"
- Industry / market cap / floats / EPS / BPS — "贵州茅台市值多少", "茅台屬於什麼行業", "AAPL EPS"
- Valuation indices (PE, PB, turnover rate, 5/10-day change, etc.) — "NVDA 的 PE", "700 換手率", "AAPL volume ratio"
- Trading status of a single security — "AAPL still trading?", "美股开盘了吗"
For 2–5 symbol comparison defer to . For historical valuation percentile, defer to .
longbridge-peer-comparisonlongbridge-valuation当用户询问以下内容时触发:
- 当前价格/涨跌幅/成交量 — "NVDA 现在多少钱", "現在股價", "What's NVDA's price?"
- 行业/市值/流通股/EPS/BPS — "贵州茅台市值多少", "茅台屬於什麼行業", "AAPL EPS"
- 估值指标(PE、PB、换手率、5/10日涨跌幅等) — "NVDA 的 PE", "700 換手率", "AAPL volume ratio"
- 单只证券的交易状态 — "AAPL still trading?", "美股开盘了吗"
若需对比2–5只证券,请调用。若需查询历史估值百分位,请调用。
longbridge-peer-comparisonlongbridge-valuationSymbol format
代码格式
<CODE>.<MARKET>| Pattern | Market | Example |
|---|---|---|
| Uppercase ticker (US) | | |
| 4-digit numeric | | |
6-digit, starts | | |
6-digit, starts | | |
| Singapore ticker | | |
| Chinese / English company name | use knowledge | 腾讯 → |
If the market is ambiguous, ask the user rather than guessing.
<CODE>.<MARKET>| 格式规则 | 市场后缀 | 示例 |
|---|---|---|
| 大写代码(美股) | | |
| 4位数字 | | |
6位数字,以 | | |
6位数字,以 | | |
| 新加坡股票代码 | | |
| 中/英文公司名称 | 借助知识库匹配 | 腾讯 → |
若市场归属不明确,请询问用户,切勿猜测。
Subcommands
子命令
This skill orchestrates up to three Longbridge CLI subcommands and merges their JSON output:
| CLI command | Returns |
|---|---|
| last / open / high / low / prev_close / volume / turnover / trade_status |
| name / industry / lot_size / total_shares / circulating_shares / EPS / BPS / dividend yield / currency |
| per-symbol valuation indices (PE, PB, turnover_rate, total_market_value, change_rate, …) |
If you're ever unsure of the exact flag names or defaults, runfirst — every Longbridge CLI subcommand self-documents its arguments, defaults, and examples. Do not hard-code flag names from this SKILL.md if the CLI version may have evolved.longbridge <subcommand> --help
该Skill可协调调用最多三个Longbridge CLI子命令,并合并其JSON输出:
| CLI命令 | 返回内容 |
|---|---|
| 最新价/开盘价/最高价/最低价/前收盘价/成交量/成交额/交易状态 |
| 名称/行业/每手股数/总股本/流通股/EPS/BPS/股息率/货币单位 |
| 单只证券的估值指标(PE、PB、换手率、总市值、涨跌幅等) |
若对具体参数名称或默认值存疑,请先运行——每个Longbridge CLI子命令都会自行说明其参数、默认值及示例。若CLI版本可能已更新,请不要硬编码本SKILL.md中的参数名称。longbridge <subcommand> --help
Workflow
工作流程
- Extract symbol(s) from the prompt; normalise each to .
<CODE>.<MARKET> - Decide which subset of subcommands is needed:
- Quote only (price / change / volume) → just
longbridge quote … - Static (industry, market cap, EPS, BPS, dividend yield) → also
longbridge static … - Indices (PE, PB, turnover rate, etc.) → also
longbridge calc-index … --index pe,pb,… - Combined ("full snapshot") → all three
- Quote only (price / change / volume) → just
- Run them (parallel is fine when supported by the agent runtime). Each command returns a JSON array keyed by symbol.
- Merge the per-symbol rows by into a single object per security.
symbol - Translate to natural language; cite the source as Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券.
- 从用户提问中提取证券代码;将每个代码标准化为格式。
<CODE>.<MARKET> - 确定需要调用的子命令子集:
- 仅报价(价格/涨跌幅/成交量)→ 仅调用
longbridge quote … - 静态信息(行业、市值、EPS、BPS、股息率)→ 同时调用
longbridge static … - 估值指标(PE、PB、换手率等)→ 同时调用
longbridge calc-index … --index pe,pb,… - 综合快照 → 调用全部三个命令
- 仅报价(价格/涨跌幅/成交量)→ 仅调用
- 运行命令(若Agent运行时支持,可并行执行)。每个命令返回一个以证券代码为键的JSON数组。
- 按将单只证券的各行数据合并为单个对象。
symbol - 转换为自然语言输出;注明数据来源为Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券。
CLI examples
CLI示例
bash
undefinedbash
undefinedSingle-symbol quote
单只证券报价
longbridge quote NVDA.US --format json
longbridge quote NVDA.US --format json
Multi-symbol quote
多只证券报价
longbridge quote NVDA.US 700.HK 600519.SH --format json
longbridge quote NVDA.US 700.HK 600519.SH --format json
Static reference
静态参考信息
longbridge static 600519.SH --format json
longbridge static 600519.SH --format json
Valuation indices
估值指标
longbridge calc-index NVDA.US --index pe,pb,turnover_rate --format json
longbridge calc-index NVDA.US --index pe,pb,turnover_rate --format json
Full snapshot (run all three and merge)
完整快照(运行三个命令并合并结果)
longbridge quote NVDA.US --format json
longbridge static NVDA.US --format json
longbridge calc-index NVDA.US --index pe,pb,total_market_value --format json
The `calc-index --index` parameter accepts a comma-separated list. Run `longbridge calc-index --help` to see the full set of supported field names; the cheat-sheet (with multilingual labels) lives in [references/calc-index-fields.md](references/calc-index-fields.md).longbridge quote NVDA.US --format json
longbridge static NVDA.US --format json
longbridge calc-index NVDA.US --index pe,pb,total_market_value --format json
`calc-index --index`参数接受逗号分隔的列表。运行`longbridge calc-index --help`可查看所有支持的字段名称;包含多语言标签的速查表位于[references/calc-index-fields.md](references/calc-index-fields.md)。Output
输出格式
Each subcommand returns a JSON array, one object per requested symbol. Missing per-symbol values appear as or (not an error). When merging, key by and emit a structure like:
"-"nullsymboljson
{
"symbol": "NVDA.US",
"quote": { "last": "...", "prev_close": "...", "volume": "...", ... },
"static": { "industry": "...", "eps": "...", "bps": "...", ... },
"calc_index": { "pe_ttm": "...", "pb": "...", "total_market_value": "...", ... }
}每个子命令返回一个JSON数组,每个请求的证券对应一个对象。缺失的单只证券数据会显示为或(不属于错误)。合并时以为键,生成如下结构:
"-"nullsymboljson
{
"symbol": "NVDA.US",
"quote": { "last": "...", "prev_close": "...", "volume": "...", ... },
"static": { "industry": "...", "eps": "...", "bps": "...", ... },
"calc_index": { "pe_ttm": "...", "pb": "...", "total_market_value": "...", ... }
}Error handling
错误处理
| Situation | LLM response |
|---|---|
Shell | Fall back to MCP if configured (see below); otherwise tell the user to install longbridge-terminal. |
stderr contains | Tell the user to run |
stderr contains | Re-check the |
| Other stderr | Surface verbatim — never silently retry. |
| 场景 | LLM响应 |
|---|---|
Shell返回 | 若已配置MCP则 fallback 到MCP(见下文);否则告知用户安装longbridge-terminal。 |
stderr包含 | 告知用户运行 |
stderr包含 | 与用户确认 |
| 其他stderr输出 | 直接显示原始内容——切勿静默重试。 |
MCP fallback
MCP fallback
If the CLI binary is unavailable and the user has run , fall back to:
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp| CLI subcommand | MCP tool |
|---|---|
| |
| |
| |
MCP is slower (HTTP + OAuth) but does not depend on a local binary.
若CLI二进制文件不可用,且用户已运行,则可fallback到:
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp| CLI子命令 | MCP工具 |
|---|---|
| |
| |
| |
MCP速度较慢(基于HTTP + OAuth),但不依赖本地二进制文件。
Related skills
关联技能
| User asks | Route to |
|---|---|
| Candlestick / intraday chart | |
| Orderbook depth / brokers / ticks | |
| Capital flow / large-order distribution | |
| 2–5 symbol comparison | |
| Historical PE / PB percentile | |
| Earnings / fundamentals | |
| Recent news / filings | |
| 用户提问内容 | 路由至 |
|---|---|
| K线图/日内走势图 | |
| 盘口深度/经纪商/逐笔成交 | |
| 资金流向/大单分布 | |
| 2–5只证券对比 | |
| 历史PE/PB百分位 | |
| 财报/基本面 | |
| 近期新闻/公告 | |
File layout
文件结构
longbridge-quote/
├── SKILL.md
└── references/
└── calc-index-fields.mdPrompt-only — no . Discover the latest CLI flags via .
scripts/longbridge <subcommand> --helplongbridge-quote/
├── SKILL.md
└── references/
└── calc-index-fields.md仅需提示词——无目录。可通过查看最新CLI参数。
scripts/longbridge <subcommand> --help