skills/tushare-data-1.0.5/references/数据接口/ETF专题/ETF日线行情.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.2 KiB
Raw Permalink Blame History

ETF日线行情


接口fund_daily 描述获取ETF行情每日收盘后成交数据历史超过10年 限量单次最大2000行记录可以根据ETF代码和日期循环获取历史总量不限制 积分需要至少5000积分才可以调取5000积分频次更高具体请参阅积分获取办法



输入参数

名称 类型 必选 描述
ts_code str N 基金代码
trade_date str N 交易日期(YYYYMMDD格式下同)
start_date str N 开始日期
end_date str N 结束日期


输出参数

名称 类型 默认显示 描述
ts_code str Y TS代码
trade_date str Y 交易日期
open float Y 开盘价(元)
high float Y 最高价(元)
low float Y 最低价(元)
close float Y 收盘价(元)
pre_close float Y 昨收盘价(元)
change float Y 涨跌额(元)
pct_chg float Y 涨跌幅(%)
vol float Y 成交量(手)
amount float Y 成交额(千元)


接口示例


pro = ts.pro_api()

#获取”沪深300ETF华夏”ETF2025年以来的行情并通过fields参数指定输出了部分字段
df = pro.fund_daily(ts_code='510330.SH', start_date='20250101', end_date='20250618', fields='trade_date,open,high,low,close,vol,amount')



数据示例

   trade_date   open   high    low  close         vol       amount
0     20250618  4.008  4.024  3.996  4.017   382896.00   153574.446
1     20250617  4.015  4.022  4.000  4.014   440272.04   176617.125
2     20250616  4.000  4.018  3.996  4.015   423526.00   169788.251
3     20250613  4.023  4.028  3.992  4.004  1216787.53   487632.318
4     20250612  4.023  4.039  4.005  4.032   574727.00   231356.321
..         ...    ...    ...    ...    ...         ...          ...
104   20250108  3.971  3.992  3.908  3.963  3200416.00  1267465.456
105   20250107  3.939  3.974  3.929  3.973  2239739.00   885818.954
106   20250106  3.950  3.964  3.917  3.943  1583794.00   624004.760
107   20250103  4.002  4.013  3.944  3.963  2025111.00   805573.289
108   20250102  4.110  4.117  3.973  4.001  1768592.00   714820.885