longbridge-quote

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-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
longbridge-peer-comparison
. For historical valuation percentile, defer to
longbridge-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-comparison
。若需查询历史估值百分位,请调用
longbridge-valuation

Symbol format

代码格式

<CODE>.<MARKET>
. Normalise before calling:
PatternMarketExample
Uppercase ticker (US)
.US
NVDA.US
,
AAPL.US
4-digit numeric
.HK
700.HK
,
9988.HK
6-digit, starts
60
.SH
600519.SH
6-digit, starts
00
/
30
.SZ
300750.SZ
Singapore ticker
.SG
D05.SG
Chinese / English company nameuse knowledge腾讯 →
700.HK
, 特斯拉 →
TSLA.US
, 贵州茅台 →
600519.SH
If the market is ambiguous, ask the user rather than guessing.
<CODE>.<MARKET>
。调用前需标准化格式:
格式规则市场后缀示例
大写代码(美股)
.US
NVDA.US
,
AAPL.US
4位数字
.HK
700.HK
,
9988.HK
6位数字,以
60
开头
.SH
600519.SH
6位数字,以
00
/
30
开头
.SZ
300750.SZ
新加坡股票代码
.SG
D05.SG
中/英文公司名称借助知识库匹配腾讯 →
700.HK
, 特斯拉 →
TSLA.US
, 贵州茅台 →
600519.SH
若市场归属不明确,请询问用户,切勿猜测。

Subcommands

子命令

This skill orchestrates up to three Longbridge CLI subcommands and merges their JSON output:
CLI commandReturns
longbridge quote <SYMBOL>... --format json
last / open / high / low / prev_close / volume / turnover / trade_status
longbridge static <SYMBOL>... --format json
name / industry / lot_size / total_shares / circulating_shares / EPS / BPS / dividend yield / currency
longbridge calc-index <SYMBOL>... --index pe,pb,... --format json
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, run
longbridge <subcommand> --help
first — 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.
该Skill可协调调用最多三个Longbridge CLI子命令,并合并其JSON输出:
CLI命令返回内容
longbridge quote <SYMBOL>... --format json
最新价/开盘价/最高价/最低价/前收盘价/成交量/成交额/交易状态
longbridge static <SYMBOL>... --format json
名称/行业/每手股数/总股本/流通股/EPS/BPS/股息率/货币单位
longbridge calc-index <SYMBOL>... --index pe,pb,... --format json
单只证券的估值指标(PE、PB、换手率、总市值、涨跌幅等)
若对具体参数名称或默认值存疑,请先运行
longbridge <subcommand> --help
——每个Longbridge CLI子命令都会自行说明其参数、默认值及示例。若CLI版本可能已更新,请不要硬编码本SKILL.md中的参数名称。

Workflow

工作流程

  1. Extract symbol(s) from the prompt; normalise each to
    <CODE>.<MARKET>
    .
  2. 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
  3. Run them (parallel is fine when supported by the agent runtime). Each command returns a JSON array keyed by symbol.
  4. Merge the per-symbol rows by
    symbol
    into a single object per security.
  5. Translate to natural language; cite the source as Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券.
  1. 从用户提问中提取证券代码;将每个代码标准化为
    <CODE>.<MARKET>
    格式。
  2. 确定需要调用的子命令子集:
    • 仅报价(价格/涨跌幅/成交量)→ 仅调用
      longbridge quote …
    • 静态信息(行业、市值、EPS、BPS、股息率)→ 同时调用
      longbridge static …
    • 估值指标(PE、PB、换手率等)→ 同时调用
      longbridge calc-index … --index pe,pb,…
    • 综合快照 → 调用全部三个命令
  3. 运行命令(若Agent运行时支持,可并行执行)。每个命令返回一个以证券代码为键的JSON数组。
  4. symbol
    将单只证券的各行数据合并为单个对象。
  5. 转换为自然语言输出;注明数据来源为Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券

CLI examples

CLI示例

bash
undefined
bash
undefined

Single-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
null
(not an error). When merging, key by
symbol
and emit a structure like:
json
{
  "symbol": "NVDA.US",
  "quote":      { "last": "...", "prev_close": "...", "volume": "...", ... },
  "static":     { "industry": "...", "eps": "...", "bps": "...", ... },
  "calc_index": { "pe_ttm": "...", "pb": "...", "total_market_value": "...", ... }
}
每个子命令返回一个JSON数组,每个请求的证券对应一个对象。缺失的单只证券数据会显示为
"-"
null
(不属于错误)。合并时以
symbol
为键,生成如下结构:
json
{
  "symbol": "NVDA.US",
  "quote":      { "last": "...", "prev_close": "...", "volume": "...", ... },
  "static":     { "industry": "...", "eps": "...", "bps": "...", ... },
  "calc_index": { "pe_ttm": "...", "pb": "...", "total_market_value": "...", ... }
}

Error handling

错误处理

SituationLLM response
Shell
command not found: longbridge
Fall back to MCP if configured (see below); otherwise tell the user to install longbridge-terminal.
stderr contains
not logged in
/
unauthorized
Tell the user to run
longbridge auth login
.
stderr contains
param_error
or "invalid symbol"
Re-check the
<CODE>.<MARKET>
format with the user.
Other stderrSurface verbatim — never silently retry.
场景LLM响应
Shell返回
command not found: longbridge
若已配置MCP则 fallback 到MCP(见下文);否则告知用户安装longbridge-terminal
stderr包含
not logged in
/
unauthorized
告知用户运行
longbridge auth login
stderr包含
param_error
或"invalid symbol"
与用户确认
<CODE>.<MARKET>
格式是否正确。
其他stderr输出直接显示原始内容——切勿静默重试。

MCP fallback

MCP fallback

If the CLI binary is unavailable and the user has run
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
, fall back to:
CLI subcommandMCP tool
quote
mcp__longbridge__quote
static
mcp__longbridge__static_info
calc-index
mcp__longbridge__calc_indexes
MCP is slower (HTTP + OAuth) but does not depend on a local binary.
若CLI二进制文件不可用,且用户已运行
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
,则可fallback到:
CLI子命令MCP工具
quote
mcp__longbridge__quote
static
mcp__longbridge__static_info
calc-index
mcp__longbridge__calc_indexes
MCP速度较慢(基于HTTP + OAuth),但不依赖本地二进制文件。

Related skills

关联技能

User asksRoute to
Candlestick / intraday chart
longbridge-kline
Orderbook depth / brokers / ticks
longbridge-depth
Capital flow / large-order distribution
longbridge-capital-flow
2–5 symbol comparison
longbridge-peer-comparison
Historical PE / PB percentile
longbridge-valuation
Earnings / fundamentals
longbridge-fundamental
Recent news / filings
longbridge-news
用户提问内容路由至
K线图/日内走势图
longbridge-kline
盘口深度/经纪商/逐笔成交
longbridge-depth
资金流向/大单分布
longbridge-capital-flow
2–5只证券对比
longbridge-peer-comparison
历史PE/PB百分位
longbridge-valuation
财报/基本面
longbridge-fundamental
近期新闻/公告
longbridge-news

File layout

文件结构

longbridge-quote/
├── SKILL.md
└── references/
    └── calc-index-fields.md
Prompt-only — no
scripts/
. Discover the latest CLI flags via
longbridge <subcommand> --help
.
longbridge-quote/
├── SKILL.md
└── references/
    └── calc-index-fields.md
仅需提示词——无
scripts/
目录。可通过
longbridge <subcommand> --help
查看最新CLI参数。