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

沪深京实时日线


接口rt_k 描述获取实时日k线行情支持按股票代码及股票代码通配符一次性提取全部股票实时日k线行情 限量单次最大可提取6000条数据等同于一次提取全市场 积分:本接口是单独开权限的数据,单独申请权限请参考权限列表



输入参数

名称 类型 必选 描述
ts_code str Y 支持通配符方式e.g. 6*.SH、301*.SZ、600000.SH

ts_code代码一定要带.SH/.SZ/.BJ后缀

输出参数

名称 类型 默认显示 描述
ts_code str Y 股票代码
name None Y 股票名称
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_price1 float N 委托卖盘(元)
ask_volume1 int N 委托卖盘(股)
bid_price1 float N 委托买盘(元)
bid_volume1 int N 委托买盘(股)
trade_time str N 交易时间


接口示例


#获取今日开盘以来所有创业板实时日线和成交笔数
df = pro.rt_k(ts_code='3*.SZ')

#获取今日开盘以来全市场所有股票实时日线和成交笔数(不建议一次提取全市场,可分批提取性能更好)
df = pro.rt_k(ts_code='3*.SZ,6*.SH,0*.SZ,9*.BJ')

#获取当日开盘以来单个股票实时日线和成交笔数
df = pro.rt_k(ts_code='600000.SH,000001.SZ')



数据示例

		ts_code  name      pre_close   high   open   low  close     vol      amount     num
0    601866.SH  中远海发       2.28   2.28   2.28   2.23   2.24  55845293  125364882  19904
1    601811.SH  新华文轩      15.47  15.59  15.42  15.24  15.46   4169900   64212329  10524
2    601877.SH  正泰电器      22.06  22.10  22.06  21.81  21.89   9816735  215350906  21733
3    601699.SH  潞安环能      11.78  11.77  11.77  11.56  11.61  12121234  140750449  13836
4    601858.SH  中国科传      18.45  18.77  18.56  18.36  18.56   2665300   49383660   7033
..         ...   ...        ...    ...    ...    ...    ...         ...          ...      ...
220  601880.SH  辽港股份       1.50   1.50   1.50   1.46   1.47  79855960  117767408  11820
221  601616.SH  广电电气       4.00   4.05   4.02   3.96   4.03  18984200   75975252  18220
222  601611.SH  中国核建       8.86   8.86   8.86   8.62   8.67  27793715  241360488  24970
223  601218.SH  吉鑫科技       3.00   3.02   2.99   2.96   3.00  10487500   31316964   6327
224  601966.SH  玲珑轮胎      15.31  15.38  15.38  15.18  15.27  11297200  172527086  31828