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.1 KiB
Raw Permalink Blame History

大盘指数每日指标


接口index_dailybasic可以通过数据工具调试和查看数据。 描述目前只提供上证综指深证成指上证50中证500中小板指创业板指的每日指标数据 数据来源Tushare社区统计计算 数据历史从2004年1月开始提供 数据权限用户需要至少400积分才可以调取具体请参阅积分获取办法

输入参数

名称 类型 必选 描述
trade_date str N 交易日期 格式YYYYMMDD比如20181018下同
ts_code str N TS代码
start_date str N 开始日期
end_date str N 结束日期

trade_datets_code 至少要输入一个参数单次限量3000条单一指数单次可提取超过12年历史总量不限制。

输出参数

名称 类型 默认显示 描述
ts_code str Y TS代码
trade_date str Y 交易日期
total_mv float Y 当日总市值(元)
float_mv float Y 当日流通市值(元)
total_share float Y 当日总股本(股)
float_share float Y 当日流通股本(股)
free_share float Y 当日自由流通股本(股)
turnover_rate float Y 换手率
turnover_rate_f float Y 换手率(基于自由流通股本)
pe float Y 市盈率
pe_ttm float Y 市盈率TTM
pb float Y 市净率

接口示例


pro = ts.pro_api()

df = pro.index_dailybasic(trade_date='20181018', fields='ts_code,trade_date,turnover_rate,pe')

数据示例

	ts_code  trade_date  turnover_rate     pe
0  000001.SH   20181018           0.38  11.92
1  000300.SH   20181018           0.27  11.17
2  000905.SH   20181018           0.82  18.03
3  399001.SZ   20181018           0.88  17.48
4  399005.SZ   20181018           0.85  21.43
5  399006.SZ   20181018           1.50  29.56
6  399016.SZ   20181018           1.06  18.86
7  399300.SZ   20181018           0.27  11.17