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

2.3 KiB
Raw Blame History

股票历史列表(历史每天股票列表)


接口bak_basic 描述获取备用基础列表数据从2016年开始 限量单次最大7000条可以根据日期参数循环获取历史正式权限需要5000积分。

输入参数

名称 类型 必选 描述
trade_date str N 交易日期
ts_code str N 股票代码

输出参数

名称 类型 默认显示 描述
trade_date str Y 交易日期
ts_code str Y TS股票代码
name str Y 股票名称
industry str Y 行业
area str Y 地域
pe float Y 市盈率(动)
float_share float Y 流通股本(亿)
total_share float Y 总股本(亿)
total_assets float Y 总资产(亿)
liquid_assets float Y 流动资产(亿)
fixed_assets float Y 固定资产(亿)
reserved float Y 公积金
reserved_pershare float Y 每股公积金
eps float Y 每股收益
bvps float Y 每股净资产
pb float Y 市净率
list_date str Y 上市日期
undp float Y 未分配利润
per_undp float Y 每股未分配利润
rev_yoy float Y 收入同比(%
profit_yoy float Y 利润同比(%
gpr float Y 毛利率(%
npr float Y 净利润率(%
holder_num int Y 股东人数

接口示例


pro = ts.pro_api()

df = pro.bak_basic(trade_date='20211012', fields='trade_date,ts_code,name,industry,pe')

数据样例

 trade_date    ts_code  name industry       pe
0      20211012  300605.SZ  恒锋信息     软件服务  56.4400
1      20211012  301017.SZ  漱玉平民     医药商业  58.7600
2      20211012  300755.SZ  华致酒行     其他商业  23.0000
3      20211012  300255.SZ  常山药业     生物制药  24.9900
4      20211012  688378.SH   奥来德     专用机械  24.9600
...         ...        ...   ...      ...      ...
4529   20211012  688257.SH  新锐股份     机械基件   0.0000
4530   20211012  688255.SH   凯尔达     机械基件   0.0000
4531   20211012  688211.SH  中科微至     专用机械   0.0000
4532   20211012  605567.SH  春雪食品       食品   0.0000
4533   20211012  605566.SH  福莱蒽特     染料涂料   0.0000