skills/tushare-data-1.0.5/references/数据接口/股票数据/特色数据/AH股比价.md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

3.0 KiB
Raw Blame History

AH股比价


接口stk_ah_comparison可以通过数据工具调试和查看数据。 描述AH股比价数据可根据交易日期获取历史 权限5000积分起 提示每天盘后17:00更新单次请求最大返回1000行数据可循环提取,本接口数据从20250812开始由于历史不好补充只能累积



输入参数

名称 类型 必选 描述
hk_code str N 港股股票代码xxxxx.HK)
ts_code str N A股票代码(xxxxxx.SH/SZ/BJ)
trade_date str N 交易日期格式YYYYMMDD下同
start_date str N 开始日期
end_date str N 结束日期


输出参数

名称 类型 默认显示 描述
hk_code str Y 港股股票代码
ts_code str Y A股股票代码
trade_date str Y 交易日期
hk_name str Y 港股股票名称
hk_pct_chg float Y 港股股票涨跌幅
hk_close float Y 港股股票收盘价
name str Y A股股票名称
close float Y A股股票收盘价
pct_chg float Y A股股票涨跌幅
ah_comparison float Y 比价(A/H)
ah_premium float Y 溢价(A/H)%


接口用法


pro = ts.pro_api()

#获取20250812日所有的AH股比价数据
df = pro.stk_ah_comparison(trade_date='20250812')




数据样例

			hk_code    ts_code trade_date   hk_name  hk_pct_chg  hk_close  name  close  pct_chg  ah_comparison  ah_premium
0    02068.HK  601068.SH   20250812      中铝国际        0.78      2.60  中铝国际   5.14     0.00           2.16      115.84
1    03993.HK  603993.SH   20250812      洛阳钼业        0.60     10.07  洛阳钼业   9.85     0.31           1.07        6.80
2    06066.HK  601066.SH   20250812    中信建投证券        1.77     13.25  中信建投  26.09     0.66           2.15      114.99
3    06680.HK  300748.SZ   20250812      金力永磁       -5.67     18.30  金力永磁  27.30    -3.05           1.63       62.88
4    02333.HK  601633.SH   20250812      长城汽车        3.55     14.60  长城汽车  22.93     1.82           1.71       71.48
..        ...        ...        ...       ...         ...       ...   ...    ...      ...            ...         ...
155  06196.HK  002936.SZ   20250812      郑州银行        1.41      1.44  郑州银行   2.10     0.48           1.59       59.22
156  06818.HK  601818.SH   20250812    中国光大银行        1.61      3.78  光大银行   4.10     0.99           1.18       18.43
157  06693.HK  600988.SH   20250812      赤峰黄金        1.76     25.44  赤峰黄金  24.58     0.24           1.05        5.49
158  02196.HK  600196.SH   20250812      复星医药        2.22     19.77  复星医药  27.70     3.36           1.53       52.98
159  01065.HK  600874.SH   20250812  天津创业环保股份        2.24      4.10  创业环保   6.01     0.00           1.60       60.05