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

63 lines
2.0 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.

# 交易所指数实时日线
----
接口rt_idx_k
描述获取交易所指数实时日线行情支持按代码或代码通配符一次性提取全部交易所指数实时日k线行情
积分:本接口是单独开权限的数据,单独申请权限请参考[权限列表](https://tushare.pro/document/1?doc_id=290)
<br>
### 输入参数
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | Y | 指数代码支持通配符方式e.g. 0\*.SH、3\*.SZ、000001.SH
<br>
### 输出参数
名称 | 类型 | 默认显示 | 描述
---- | ---- | ---- | ----
ts_code | str | Y | 指数代码
name | str | Y | 指数名称
trade_time | str | Y | 交易时间
close | float | Y | 现价
pre_close | float | Y | 昨收
high | float | Y | 最高价
open | float | Y | 开盘价
low | float | Y | 最低价
vol | float | Y | 成交量
amount | float | Y | 成交金额(元)
<br>
### 代码示例
```python
#获取单个指数实时行情
df = pro.rt_idx_k(ts_code='000001.SH')
#获取多个指数实时行情,以上证综指和深证A指为例
df = pro.rt_idx_k(ts_code='000001.SH,399107.SZ')
#获取上交所所有指数实时行情,同时指定输出字段
df = pro.rt_idx_k(ts_code='0*.SH', fields='ts_code,name,close,vol')
```
<br>
### 数据结果
ts_code name close vol
0 000851.SH 百发100 19517.5514 2.035695e+07
1 000934.SH 中证金融 6203.0781 6.711314e+07
2 000010.SH 上证180 9773.2466 1.135439e+08
3 000065.SH 上证龙头 3527.1942 5.541939e+07
4 000033.SH 上证材料 3232.1719 2.889464e+07
.. ... ... ... ...
195 000888.SH 上证收益 4420.1632 4.787276e+08
196 000011.SH 基金指数 7103.0192 1.107185e+09
197 000008.SH 综合指数 3668.1847 1.011677e+08
198 000075.SH 医药等权 7170.0801 4.000854e+06
199 000029.SH 180价值 4396.8748 5.572026e+07