From longbridge
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".
npx claudepluginhub longbridge/skills --plugin longbridgeThis skill uses the workspace's default tool permissions.
Real-time quote, static info, and valuation indices for Longbridge-supported securities (HK / US / A-share / Singapore).
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
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.
Trigger on prompts asking about:
For 2–5 symbol comparison defer to longbridge-peer-comparison. For historical valuation percentile, defer to longbridge-valuation.
<CODE>.<MARKET>. Normalise before calling:
| Pattern | Market | Example |
|---|---|---|
| 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 name | use knowledge | 腾讯 → 700.HK, 特斯拉 → TSLA.US, 贵州茅台 → 600519.SH |
If the market is ambiguous, ask the user rather than guessing.
This skill orchestrates up to three Longbridge CLI subcommands and merges their JSON output:
| CLI command | Returns |
|---|---|
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> --helpfirst — 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.
<CODE>.<MARKET>.longbridge quote …longbridge static …longbridge calc-index … --index pe,pb,…symbol into a single object per security.# 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 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.
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:
{
"symbol": "NVDA.US",
"quote": { "last": "...", "prev_close": "...", "volume": "...", ... },
"static": { "industry": "...", "eps": "...", "bps": "...", ... },
"calc_index": { "pe_ttm": "...", "pb": "...", "total_market_value": "...", ... }
}
| Situation | LLM 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 stderr | Surface verbatim — never silently retry. |
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 subcommand | MCP 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.
| User asks | Route 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 |
longbridge-quote/
├── SKILL.md
└── references/
└── calc-index-fields.md
Prompt-only — no scripts/. Discover the latest CLI flags via longbridge <subcommand> --help.