longbridge-ah-premium

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-ah-premium

longbridge-ah-premium

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.
查询两地上市中资公司的A/H溢价率——历史K线或当日盘中曲线。
响应语言:匹配用户输入语言——简体中文 / 繁体中文 / 英文。

When to use

使用场景

Trigger when the user asks about the price gap between an HK listing and its A-share twin:
  • "工行 A/H 溢价", "工行 AH 比价"
    1398.HK
  • "建行 AH 折价"
    939.HK
  • "中国平安港股比 A 股贵多少"
    2318.HK
  • "AH premium for ICBC over the last year"
    1398.HK --kline-type day --count 250
  • "今天 939 的 AH 溢价走势"
    intraday 939.HK
For single-symbol quote, use
longbridge-quote
. For comparison of unrelated tickers, use
longbridge-peer-comparison
.
当用户询问港股与其对应A股之间的价格差距时触发:
  • "工行 A/H 溢价""工行 AH 比价"
    1398.HK
  • "建行 AH 折价"
    939.HK
  • "中国平安港股比 A 股贵多少"
    2318.HK
  • "AH premium for ICBC over the last year"
    1398.HK --kline-type day --count 250
  • "今天 939 的 AH 溢价走势"
    intraday 939.HK
若查询单个标的报价,请使用
longbridge-quote
。若对比不相关标的,请使用
longbridge-peer-comparison

Symbol format

代码格式

Always pass the HK side (
<CODE>.HK
) of the dual-listed pair. The Longbridge API maps internally to the A-share counterpart. Common pairs:
CompanyHKA-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.
请始终传入两地上市配对标的的港股代码
<CODE>.HK
)。长桥API会自动映射至对应的A股标的。常见配对标的:
公司港股代码A股代码
工商银行(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
若用户提供A股代码,请转换为对应的港股代码。若标的并非两地上市(例如
700.HK
),API将返回无数据——请告知用户此情况,无需重试。

Subcommands

子命令

Run
longbridge ah-premium --help
(and
longbridge ah-premium intraday --help
) if unsure of current flags.
CLI commandReturns
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.
若不确定当前参数,请运行
longbridge ah-premium --help
(以及
longbridge ah-premium intraday --help
)。
CLI命令返回内容
longbridge ah-premium <SYMBOL> [--kline-type T] [--count N] --format json
历史溢价率K线数据
longbridge ah-premium intraday <SYMBOL> --format json
当日盘中溢价时间序列数据
--kline-type
可选值:
1m
/
5m
/
15m
/
30m
/
60m
/
day
(默认) /
week
/
month
/
year
--count
默认值为100。

Workflow

工作流程

  1. Identify the dual-listed pair; pass the HK symbol.
  2. Decide mode:
    • "近一年 / last year走势" → kline
      --kline-type day --count 250
    • "近一月 / past month" → kline
      --kline-type day --count 22
    • "今天 / 当日 / intraday" →
      intraday
      subcommand
  3. Run the command, render the time series (table or summary: latest premium %, range, trend).
  4. Cite source as Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券.
  1. 识别两地上市配对标的;传入港股代码。
  2. 确定模式:
    • "近一年 / last year走势" → K线模式
      --kline-type day --count 250
    • "近一月 / past month" → K线模式
      --kline-type day --count 22
    • "今天 / 当日 / intraday" →
      intraday
      子命令
  3. 运行命令,渲染时间序列数据(表格或摘要:最新溢价百分比、波动范围、趋势)。
  4. 标注数据来源为Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券

CLI examples

CLI示例

bash
undefined
bash
undefined

Default daily kline (100 days)

默认日K线(100天)

longbridge ah-premium 939.HK --format json
longbridge ah-premium 939.HK --format json

Last year of daily premium

近一年日度溢价数据

longbridge ah-premium 1398.HK --kline-type day --count 250 --format json
longbridge ah-premium 1398.HK --kline-type day --count 250 --format json

Last 12 weeks

近12周溢价数据

longbridge ah-premium 2318.HK --kline-type week --count 12 --format json
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
undefined
longbridge ah-premium intraday 939.HK --format json
undefined

Output

输出格式

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.
每一行包含时间戳和溢价率(通常计算公式为
(港股价格 * 汇率) / A股价格 - 1
,以百分比表示)。负值表示港股较A股折价。需展示最新数值及近期波动范围。

Error handling

错误处理

SituationLLM 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 stderrSurface verbatim.
场景大语言模型响应
Shell提示
command not found: longbridge
若已配置MCP则 fallback至MCP;否则告知用户安装longbridge-terminal。
返回空数组"无A/H溢价数据——
<SYMBOL>
可能未在A股两地上市。"
标准错误输出
param_error
验证标的是否为两地上市配对的港股代码。
其他标准错误输出直接展示原始错误信息。

MCP fallback

MCP fallback

CLI subcommandMCP 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)
CLI子命令MCP工具
ah-premium <SYMBOL>
(K线)
mcp__longbridge__ah_premium_kline
(或通过等效MCP工具 fallback)
ah-premium intraday <SYMBOL>
mcp__longbridge__ah_premium_intraday
(或通过等效MCP工具 fallback)

Related skills

相关技能

User asksRoute 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-quote
港股或A股K线历史数据
longbridge-kline
跨标的对比(>2个标的)
longbridge-peer-comparison
溢价变动原因(新闻 / 催化剂)
longbridge-news

File layout

文件结构

longbridge-ah-premium/
└── SKILL.md          # prompt-only, no scripts/
longbridge-ah-premium/
└── SKILL.md          # 仅含提示词,无scripts/目录