oclaw/runtime/skills/tushare-finance/reference/接口文档/沪深港通股票列表.md
oliver d1bcc4debe feat: multimodal image clients, workspaces, Tushare skill, test fixes
- Replace monolithic image_message_client with HTTP/OCR/legacy modules; tighten OpenAI transport + tool schemas for multimodal downgrade to OCR specialist path.
- Add image/stock workspace prompts (META/SOUL/ROLE_SYSTEM); register experts; tweak specialist agent/direct loop/query_image_attachment.
- Add bundled runtime/skills/tushare-finance (references, api_client, SKILL metadata).
- Document OCR-related env vars; admin chat tweaks; README; weixin_install Ensure-OfficialPluginRuntimeDeps helper.
- Tests: multimodal downgrade + OCR coverage, strict tool pairing in attachment replay guard, workspace contract skips _internal/_system dirs, router/trace/prompt guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 04:41:42 +08:00

2.7 KiB
Raw Blame History

沪深港通股票列表

文档ID: 398 原始链接: https://tushare.pro/document/2?doc_id=398


沪深港通股票列表

接口:stock_hsgt,可以通过数据工具调试和查看数据。描述:获取沪深港通股票列表权限:3000积分起提示:每天上午9:20更新,单次请求最大返回2000行数据,可根据类型循环提取,本接口数据从20250812开始

输入参数

名称 类型 必选 描述
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 港股通(沪>港)
输出参数
名称 类型 默认显示 描述
ts_code str Y 股票代码
trade_date str Y 交易日期
type str Y 类型
name str Y 股票名称
type_name str Y 类型名称
接口用法

pro = ts.pro_api()

#获取20250813日深股通的股票列表
df = pro.stock_hsgt(trade_date='20250813',type='HK_SZ')


数据样例

             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     昭衍新药  港股通(沪>港)