skills/tushare-data-1.0.5/references/数据接口/股票数据/基础数据/沪深港通股票列表.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

80 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 沪深港通股票列表
----
接口stock_hsgt可以通过[**数据工具**](https://tushare.pro/webclient/)调试和查看数据。
描述:获取沪深港通股票列表
权限3000积分起
提示每天上午9:20更新单次请求最大返回2000行数据可根据类型循环提取,本接口数据从20250812开始
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | N | 股票代码
trade_date | str | N | 交易日期格式YYYYMMDD
type | str | Y | 类型(参考下表)
start_date | str | N | 开始时间
end_date | str | N | 结束时间
类型说明如下:
| 类型 | 类型名称 |
--- | ---- |
| HK_SZ | 深股通(港>深) |
| SZ_HK | 港股通(深>港) |
| HK_SH | 沪股通(港>沪) |
| SH_HK | 港股通(沪>港) |
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
ts_code | str | Y | 股票代码
trade_date | str | Y | 交易日期
type | str | Y | 类型
name | str | Y | 股票名称
type_name | str | Y | 类型名称
<br>
<br>
**接口用法**
```python
pro = ts.pro_api()
#获取20250813日深股通的股票列表
df = pro.stock_hsgt(trade_date='20250813',type='HK_SZ')
```
<br>
<br>
**数据样例**
ts_code trade_date type name type_name
0 001258.SZ 20250813 HK_SZ 立新能源 深股通(港>深)
1 00019.HK 20250813 SZ_HK 太古股份公司A 港股通(深>港)
2 000513.SZ 20250813 HK_SZ 丽珠集团 深股通(港>深)
3 002044.SZ 20250813 HK_SZ 美年健康 深股通(港>深)
4 000338.SZ 20250813 HK_SZ 潍柴动力 深股通(港>深)
.. ... ... ... ... ...
995 300206.SZ 20250813 HK_SZ 理邦仪器 深股通(港>深)
996 02331.HK 20250813 SH_HK 李宁 港股通(沪>港)
997 01855.HK 20250813 SH_HK 中庆股份 港股通(沪>港)
998 300726.SZ 20250813 HK_SZ 宏达电子 深股通(港>深)
999 06127.HK 20250813 SH_HK 昭衍新药 港股通(沪>港)