
Tushare Api
This connects Claude to Tushare Pro, China's leading financial data platform for stocks, funds, futures, and bonds. You get access to daily market data, company financials (income statements, balance sheets, cash flow), trading calendars, IPO listings, and market indicators like PE ratios and money flow. Stock codes need exchange suffixes like .SH for Shanghai or .SZ for Shenzhen. Fair warning: you'll need to register for a Tushare token and watch your API credits since different endpoints have different costs. Data updates 1-2 hours after market close, and free tier users hit rate limits pretty quickly. Solid choice if you're building Chinese market analysis tools or need programmatic access to mainland financial data without scraping.
- skills.sh installs
- 433
- GitHub stars
- 14
- last updated
- Jun 3, 2026
Install
$ npx -y skills add daydreammy/tushare-openclaw-skill --skill tushare-api --agent claude-codeInstalls into .claude/skills of the current project.
Files
Tushare API Skill
简介
Tushare Pro 是中国领先的金融数据平台,提供股票、基金、期货、债券、外汇、数字货币等全品类金融大数据。
官网: https://tushare.pro API 文档: https://tushare.pro/document/2
股票代码规范
所有股票代码都需要带后缀:
| 交易所 | 后缀 | 示例 |
|---|---|---|
| 上海证券交易所 | .SH | 600000.SH |
| 深圳证券交易所 | .SZ | 000001.SZ |
| 北京证券交易所 | .BJ | 835305.BJ |
| 香港证券交易所 | .HK | 00001.HK |
常用 API 接口
基础数据
stock_basic- 股票基础信息trade_cal- 交易日历stock_company- 上市公司基本信息new_share- IPO 新股列表
行情数据
daily- 日线行情weekly- 周线行情monthly- 月线行情adj_factor- 复权因子daily_basic- 每日指标(PE/PB/市值等)
财务数据
income- 利润表balance_sheet- 资产负债表cashflow- 现金流量表forecast- 业绩预告express- 业绩快报dividend- 分红送股fina_indicator- 财务指标
市场数据
moneyflow- 个股资金流向limit_list- 每日涨跌停股票top_list- 龙虎榜数据block_trade- 大宗交易
使用方法
Python SDK
import tushare as ts
# 设置 token(需要用户自行申请)
pro = ts.pro_api('your_token_here')
# 获取股票列表
df = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
# 获取日线行情
df = pro.daily(ts_code='000001.SZ', start_date='20240101', end_date='20240201')
Sponsors
Details
- Repository
- github.com/daydreammy/tushare-openclaw-skill
- Category
- Backend & APIs
- First seen
- Jun 3, 2026