Pulls Chinese market data through the Tushare Pro API with support for 220+ endpoints covering A-shares, Hong Kong stocks, US stocks, funds, futures, and bonds. You get daily quotes, financial statements, index data, and macroeconomic indicators like GDP and CPI. The skill walks you through getting a Tushare token if you don't have one, then shows you how to query specific endpoints using pandas DataFrames. Documentation is organized by category with quick reference tables for common operations. If you're building anything that needs Chinese financial data, this is basically a wrapper around the entire Tushare ecosystem with examples for the most common queries.

skills.sh installs
5.2K
GitHub stars
80
last updated
Aug 21, 2026

Install

$ npx -y skills add stanleychanh/tushare-finance-skill-for-claude-code --skill tushare-finance --agent claude-code

Installs into .claude/skills of the current project.

Files

Tushare 金融数据 Skill

本 skill 通过 Tushare Pro API 获取中国金融市场数据,支持 220+ 个数据接口。

快速开始

1. Token 配置

询问用户:是否已配置 Tushare Token?

如未配置,引导用户:

  1. 访问 https://tushare.pro 注册
  2. 获取 Token
  3. 配置环境变量: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()居民消费价格指数

完整接口列表:查看 接口文档索引

数据获取流程

  1. 查找接口:根据需求在 接口索引 找到对应接口
  2. 阅读文档:查看 reference/接口文档/[接口名].md 了解参数
  3. 编写代码:
    import tushare as ts
    
    # 初始化(使用环境变量中的 Token)
    pro = ts.pro_api()
    
    # 调用接口
    df = pro.daily(ts_code='000001.SZ', start_date='20241201', end_date='20241231')
    
  4. 返回结果:DataFrame 格式

参数格式说明

Sponsors

Details

Repository
github.com/stanleychanh/tushare-finance-skill-for-claude-code
Category
Finance & Trading
1marketcalls avatarbacktestmarketcalls/vectorbt-backtesting-skillsQuick backtest a strategy on a symbol. Creates a complete .py script with data fetch, signals, backtest, stats, and plots.3.5Kskills.sh installs
2blave-tw avatarblave-quantblave-tw/blave-quant-skillblave quant3Kskills.sh installs
3aradotso avatardaily-stock-analysisaradotso/trending-skillsdaily stock analysis1.9Kskills.sh installs
4chjm-ai avatarstock-monitorchjm-ai/stock-monitor-skill全功能智能股票监控预警系统。支持成本百分比、均线金叉死叉、RSI超买超卖、成交量异动、跳空缺口、动态止盈等7大预警规则。符合中国投资者习惯(红涨绿跌)。1.4Kskills.sh installs
5modelstudioai avatarfinancial-expertmodelstudioai/skills金融数据分析技能(基于 `bl mcp` + 阿里云百炼 MCP 市场 `market-cmapi00073529`), 覆盖中国 A 股、基金、债券等金融标的。支持股票筛选、基金筛选、基金经理筛选、 财务数据查询(净利润 / 营收 / ROE 等)、宏观与行业时序数据(GDP / CPI / 产销价)、 券商研报检索1.1Kskills.sh installs
6aradotso avatarpolymarket-arbitrage-trading-botaradotso/trending-skillspolymarket arbitrage trading bot927skills.sh installs