longbridge-quote
Original:🇺🇸 English
Translated
Real-time quotes, static reference, and valuation indices for stocks listed in HK / US / A-share / Singapore via Longbridge Securities. Returns last price, change, volume, turnover, market cap, industry, PE/PB, turnover-rate, and other indicators. Triggers: "现在多少钱", "股价", "涨跌幅", "成交量", "市值", "市盈率", "PE", "PB", "换手率", "行业", "現在多少", "股價", "成交量", "市值", "市盈率", "stock price", "current price", "quote", "market cap", "PE ratio", "valuation", "NVDA price", "AAPL quote", "茅台市值", "腾讯股价", "700.HK", "600519.SH".
3installs
Sourcelongbridge/skills
Added on
NPX Install
npx skill4agent add longbridge/skills longbridge-quoteTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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.
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-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.
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
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 / 数据来源:长桥证券 / 數據來源:長橋證券.
CLI examples
bash
# Single-symbol quote
longbridge quote NVDA.US --format json
# Multi-symbol quote
longbridge quote NVDA.US 700.HK 600519.SH --format json
# Static reference
longbridge static 600519.SH --format json
# Valuation indices
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 jsonThe parameter accepts a comma-separated list. Run to see the full set of supported field names; the cheat-sheet (with multilingual labels) lives in references/calc-index-fields.md.
calc-index --indexlongbridge calc-index --helpOutput
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": "...", ... }
}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. |
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.
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 | |
File layout
longbridge-quote/
├── SKILL.md
└── references/
└── calc-index-fields.mdPrompt-only — no . Discover the latest CLI flags via .
scripts/longbridge <subcommand> --help