Tushare Finance
Python-based access to over 220 Tushare Pro endpoints for China, Hong Kong, and US market data.
- CCM score
- 40 of 100
- skills.sh installs
- 5.2K
- GitHub stars
- 83
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers A-shares, Hong Kong and US stocks, funds, futures, options, bonds, and macroeconomic indicators through one Tushare Pro token
- Includes a reference index grouping about 130 interfaces by category, from stock and index data to bonds and macro series
- Returns results as pandas DataFrames, with dates in YYYYMMDD format and stock codes in
ts_codeform such as000001.SZ - Designed for requests about share prices, financial statements, index moves, or GDP and CPI figures, after a
TUSHARE_TOKENis configured
Install
$ npx -y skills add stanleychanh/tushare-finance-skill-for-claude-code --skill tushare-finance -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Tushare 金融数据 Skill
本 skill 通过 Tushare Pro API 获取中国金融市场数据,支持 220+ 个数据接口。
快速开始
1. Token 配置
询问用户:是否已配置 Tushare Token?
如未配置,引导用户:
- 访问 https://tushare.pro 注册
- 获取 Token
- 配置环境变量:
export TUSHARE_TOKEN="your_token"
2. 验证依赖
检查 Python 环境:
python -c "import tushare, pandas; print('OK')"
如报错,安装依赖:
pip install tushare pandas
常用接口速查
| 数据类型 | 接口方法 | 说明 |
|---|---|---|
| 股票列表 | pro.stock_basic() | 获取所有股票列表 |
| 日线行情 | pro.daily() | 获取日线行情数据 |
| 财务指标 | pro.fina_indicator() | 财务指标(ROE等) |
| 利润表 | pro.income() | 利润表数据 |
| 指数行情 | pro.index_daily() | 指数日线数据 |
| 基金净值 | pro.fund_nav() | 基金净值数据 |
| GDP数据 | pro.gdp() | 国内生产总值 |
| CPI数据 | pro.cpi() | 居民消费价格指数 |
完整接口列表:查看 接口文档索引
数据获取流程
- 查找接口:根据需求在 接口索引 找到对应接口
- 阅读文档:查看
reference/接口文档/[接口名].md了解参数 - 编写代码:
import tushare as ts # 初始化(使用环境变量中的 Token) pro = ts.pro_api() # 调用接口 df = pro.daily(ts_code='000001.SZ', start_date='20241201', end_date='20241231') - 返回结果:DataFrame 格式
参数格式说明
Details
Similar to Tushare Finance
More Finance & TradingFinanceMCPMCP serverguangxiangdebizi875 starsReal-time and historical market data across A-shares, Hong Kong, US, crypto, funds, and macro indicators.
akshareSkillsucc985/openclaw-akshare-skill1.8K installsPython library for Chinese market data covering A-shares, Hong Kong, US stocks, futures, funds, and macro indicators.
a-stock-dataSkillsimonlin1212/a-stock-data1.2K installsA-share market data toolkit spanning fifteen layers, 87 endpoints, and 34 sources, with zero external files.
akshare-stockSkillmolezzz/openclaw-stock-skill11.2K installsReal-time and historical A-stock analysis that routes natural language queries across market, fundamental, sector, and derivatives data.
TickDB Market DataMCP servertickdb945 starsUnified real-time and historical market data for forex, stocks, futures, indices, and crypto.
eastmoney_financial_dataSkillmeission/eastmoney718 installs金融数据查询接口 that routes natural-language queries to Eastmoney for live market, fundamentals, and relationship data.