skills/tushare-data-1.0.5/references/数据接口/股票数据/行情数据/实时Tick(爬虫).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

3.3 KiB
Raw Blame History

实时盘口TICK快照(爬虫版)


接口realtime_quoteA股实时行情 描述本接口是tushare org版实时接口的顺延数据来自网络且不进入tushare服务器属于爬虫接口请将tushare升级到1.3.3版本以上。 权限0积分完全开放但需要有tushare账号如果没有账号请先注册。 说明由于该接口是纯爬虫程序跟tushare服务器无关因此tushare不对数据内容和质量负责。数据主要用于研究和学习使用如做商业目的请自行解决合规问题。



输入参数

名称 类型 必选 描述
ts_code str N 股票代码需按tushare股票和指数标准代码输入比如000001.SZ表示平安银行000001.SH表示上证指数
src str N 数据源 sina-新浪 dc-东方财富默认sina

src数据源说明
src源 说明 描述
sina 新浪财经 支持多个多个股票同时输入举例ts_code='600000.SH,000001.SZ'一次最多不能超过50个股票
dc 东方财富 只支持单个股票提取


输出参数

名称 类型 描述
name str 股票名称
ts_code str 股票代码
date str 交易日期
time str 交易时间
open float 开盘价
pre_close float 昨收价
price float 现价
high float 今日最高价
low float 今日最低价
bid float 竞买价,即“买一”报价(元)
ask float 竞卖价,即“卖一”报价(元)
volume int 成交量src=sina时是股src=dc时是手
amount float 成交金额(元 CNY
b1_v float 委买一(量,单位:手,下同)
b1_p float 委买一(价,单位:元,下同)
b2_v float 委买二(量)
b2_p float 委买二(价)
b3_v float 委买三(量)
b3_p float 委买三(价)
b4_v float 委买四(量)
b4_p float 委买四(价)
b5_v float 委买五(量)
b5_p float 委买五(价)
a1_v float 委卖一(量,单位:手,下同)
a1_p float 委卖一(价,单位:元,下同)
a2_v float 委卖二(量)
a2_p float 委卖二(价)
a3_v float 委卖三(量)
a3_p float 委卖三(价)
a4_v float 委卖四(量)
a4_p float 委卖四(价)
a5_v float 委卖五(量)
a5_p float 委卖五(价)


接口用法


import tushare as ts

#设置你的token登录tushare在个人用户中心里拷贝
ts.set_token('你的token')

#sina数据
df = ts.realtime_quote(ts_code='600000.SH,000001.SZ,000001.SH')


#东财数据
df = ts.realtime_quote(ts_code='600000.SH', src='dc')



数据样例

	 NAME    TS_CODE      DATE      TIME       OPEN  PRE_CLOSE      PRICE  ...   A2_P  A3_V   A3_P  A4_V   A4_P  A5_V   A5_P
0  浦发银行  600000.SH  20231222  15:00:00      6.570      6.570      6.580  ...  6.590  1834  6.600  4107  6.610  2684  6.620
1  平安银行  000001.SH  20231222  15:00:00      9.190      9.170      9.200  ...  9.210  2177  9.220  2568  9.230  2319  9.240
2  上证指数  000001.SH  20231222  15:30:39  2919.2879  2918.7149  2914.7752  ...      0            0            0            0