From longbridge
A/H premium ratio for Mainland-Chinese companies dual-listed in Hong Kong and A-shares (e.g. 939.HK / 601398.SH, 1810.HK / 600519.SH-pair) via Longbridge Securities — historical premium time series (kline) or today's intraday premium curve. Only HK-side symbols of dual-listed pairs return data. Triggers: "AH 溢价", "A H 溢价率", "AH 折价", "AH 价差", "工行 AH", "建行 AH", "比价", "A 股贵还是港股贵", "AH premium", "A/H premium", "AH ratio", "AH 溢價", "A H 溢價率", "AH 折價", "AH 價差", "比價", "A 股貴還是港股貴", "dual listed premium", "Hong Kong A-share premium", "premium ratio", "939.HK", "1398.HK", "600519.SH 对应港股".
npx claudepluginhub longbridge/skills --plugin longbridgeThis skill uses the workspace's default tool permissions.
A/H premium ratio for dual-listed Mainland-Chinese companies — historical kline or today's intraday curve.
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.
A/H premium ratio for dual-listed Mainland-Chinese companies — historical kline or today's intraday curve.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Trigger when the user asks about the price gap between an HK listing and its A-share twin:
1398.HK939.HK2318.HK1398.HK --kline-type day --count 250intraday 939.HKFor single-symbol quote, use longbridge-quote. For comparison of unrelated tickers, use longbridge-peer-comparison.
Always pass the HK side (<CODE>.HK) of the dual-listed pair. The Longbridge API maps internally to the A-share counterpart. Common pairs:
| Company | HK | A-share |
|---|---|---|
| 工商银行 / ICBC | 1398.HK | 601398.SH |
| 建设银行 / CCB | 939.HK | 601939.SH |
| 中国平安 / Ping An | 2318.HK | 601318.SH |
| 招商银行 / CMB | 3968.HK | 600036.SH |
| 中国人寿 / China Life | 2628.HK | 601628.SH |
If the user gives an A-share symbol, translate to the HK side. If the stock is not dual-listed (e.g. 700.HK), the API returns no data — report that, don't retry.
Run
longbridge ah-premium --help(andlongbridge ah-premium intraday --help) if unsure of current flags.
| CLI command | Returns |
|---|---|
longbridge ah-premium <SYMBOL> [--kline-type T] [--count N] --format json | Historical premium ratio kline |
longbridge ah-premium intraday <SYMBOL> --format json | Today's intraday premium time series |
--kline-type: 1m / 5m / 15m / 30m / 60m / day (default) / week / month / year. --count defaults to 100.
--kline-type day --count 250--kline-type day --count 22intraday subcommand# Default daily kline (100 days)
longbridge ah-premium 939.HK --format json
# Last year of daily premium
longbridge ah-premium 1398.HK --kline-type day --count 250 --format json
# Last 12 weeks
longbridge ah-premium 2318.HK --kline-type week --count 12 --format json
# Today's intraday premium curve
longbridge ah-premium intraday 939.HK --format json
Each row carries a timestamp and a premium ratio (typically expressed as (H_price * fx) / A_price - 1, in %). Negative = HK trades at a discount to A-share. Surface latest value + recent range.
| Situation | LLM response |
|---|---|
Shell command not found: longbridge | Fall back to MCP if configured; otherwise tell the user to install longbridge-terminal. |
| Empty array | "No A/H premium data — <SYMBOL> is likely not dual-listed in A-shares." |
stderr param_error | Verify the symbol is an HK ticker of a dual-listed pair. |
| Other stderr | Surface verbatim. |
| CLI subcommand | MCP tool |
|---|---|
ah-premium <SYMBOL> (kline) | mcp__longbridge__ah_premium_kline (or fall back via the equivalent MCP tool) |
ah-premium intraday <SYMBOL> | mcp__longbridge__ah_premium_intraday (or fall back via the equivalent MCP tool) |
| User asks | Route to |
|---|---|
| Single-symbol price / change | longbridge-quote |
| HK or A-share candlestick history | longbridge-kline |
| Cross-symbol comparison (>2 tickers) | longbridge-peer-comparison |
| Why the premium changed (news / catalysts) | longbridge-news |
longbridge-ah-premium/
└── SKILL.md # prompt-only, no scripts/