oclaw/skills/tushare-finance/reference/接口文档/实时排名(爬虫).md
oliver beb52006d8 refactor: move bundled skills tree to repo root skills/
- Relocate runtime/skills -> skills/; runtime_skills_root() prefers oclaw/skills
  with fallback to legacy runtime/skills for unmigrated trees.
- session-bootstrap hook handler resolves repo root via PROJECT_ROOT.
- Update architecture/migration docs and in-tree skill references.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 11:35:57 +08:00

3.7 KiB
Raw Blame History

实时排名(爬虫)

文档ID: 317 原始链接: https://tushare.pro/document/2?doc_id=317


实时涨跌幅排名(爬虫版)

接口:realtime_list,由于采集和拼接当日以来的成交全历史,因此接口提取数据时需要一定时间,请耐心等待,请将tushare升级到1.3.3版本以上。描述:本接口是tushare org版实时接口的顺延,数据来自网络,且不进入tushare服务器,属于爬虫接口,数据包括该股票当日开盘以来的所有分笔成交数据。权限:0积分完全开放,但需要有tushare账号,如果没有账号请先注册。说明:由于该接口是纯爬虫程序,跟tushare服务器无关,因此tushare不对数据内容和质量负责。数据主要用于研究和学习使用,如做商业目的,请自行解决合规问题。

输入参数

名称 类型 必选 描述
src str N 数据源 (sina-新浪 dc-东方财富,默认dc)
东财数据输出参数
名称 类型 描述
ts_code str 股票代码
name str 股票名称
price float 当前价格
pct_change float 涨跌幅
change float 涨跌额
volume int 成交量(单位:手)
amount int 成交金额(元)
swing float 振幅
low float 今日最低价
high float 今日最高价
open float 今日开盘价
close float 今日收盘价
vol_ratio int 量比
turnover_rate float 换手率
pe int 市盈率PE
pb float 市净率PB
total_mv float 总市值(元)
float_mv float 流通市值(元)
rise float 涨速
5min float 5分钟涨幅
60day float 60天涨幅
1tyear float 1年涨幅
新浪数据输出参数
名称 类型 描述
ts_code str 股票代码
name str 股票名称
price float 当前价格
pct_change float 涨跌幅
change float 涨跌额
buy float 买入价
sale float 卖出价
close float 今日收盘价
open float 今日开盘价
high float 今日最高价
low float 今日最低价
volume int 成交量(单位:股)
amount int 成交金额(元)
time str 当前时间
接口用法

import tushare as ts

#东财数据
df = ts.realtime_list(src='dc')


#sina数据
df = ts.realtime_list(src='sina')