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

77 lines
2.7 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.

## ETF实时日线
----
接口rt_etf_k
描述获取ETF实时日k线行情支持按ETF代码或代码通配符一次性提取全部ETF实时日k线行情
积分:本接口是单独开权限的数据,单独申请权限请参考[权限列表](https://tushare.pro/document/1?doc_id=290)
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | Y | 支持通配符方式e.g. 5\*.SH、15\*.SZ、159101.SZ
topic | str | Y | 分类参数取上海ETF时需要输入'HQ_FND_TICK',参考下面例子
<br>
ts_code代码一定要带<font color="red">.SH/.SZ/.BJ</font>后缀
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
ts_code | str | Y | ETF代码
name | None | Y | ETF名称
pre_close | float | Y | 昨收价
high | float | Y | 最高价
open | float | Y | 开盘价
low | float | Y | 最低价
close | float | Y | 收盘价(最新价)
vol | int | Y | 成交量(股)
amount | int | Y | 成交金额(元)
num | int | Y | 开盘以来成交笔数
ask_volume1 | int | N | 委托卖盘(股)
bid_volume1 | int | N | 委托买盘(股)
trade_time | str | N | 交易时间
<br>
<br>
**接口示例**
```python
#获取今日所有深市ETF实时日线和成交笔数
df = pro.rt_etf_k(ts_code='1*.SZ')
#获取今日沪市所有ETF实时日线和成交笔数
df = pro.rt_etf_k(ts_code='5*.SH', topic='HQ_FND_TICK')
```
<br>
<br>
**数据示例**
ts_code name pre_close high open low close vol amount num
0 520860.SH 港股通科 1.024 1.054 1.048 1.041 1.048 15071600 15780985 307
1 515320.SH 电子50 1.173 1.211 1.184 1.184 1.206 1830600 2191339 98
2 511600.SH 货币ETF 100.008 100.003 100.002 99.999 100.000 12022 1202204 28
3 501075.SH 科创主题 2.350 2.400 2.357 2.357 2.400 4200 10040 11
4 589990.SH 科创板综 1.282 1.311 1.280 1.280 1.305 4178600 5413728 147
.. ... ... ... ... ... ... ... ... ... ...
933 516590.SH 电动汽车 1.244 1.277 1.252 1.252 1.270 1380800 1748398 79
934 502048.SH 50LOF 1.224 1.238 1.235 1.214 1.218 3200 3908 5
935 515850.SH 证券龙头 1.519 1.538 1.523 1.520 1.523 11460000 17484157 688
936 515790.SH 光伏ETF 0.912 0.929 0.919 0.910 0.923 411566128 379094370 14939
937 516190.SH 文娱ETF 1.137 1.154 1.151 1.146 1.151 1031700 1186303 87