Fetches Chinese financial market data (A-shares, HK, US stocks, funds, futures, bonds) via Tushare Pro API. 220+ endpoints for stock quotes, financial statements, and macroeconomic indicators like GDP/CPI.
Ships in stanleychanh-tushare-finance-skill-for-claude-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
本 skill 通过 Tushare Pro API 获取中国金融市场数据,支持 220+ 个数据接口。
询问用户:是否已配置 Tushare Token?
如未配置,引导用户:
export TUSHARE_TOKEN="your_token"检查 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')
接口索引:reference/README.md
接口文档按类别组织:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tushare-pro, china-finance, stock-data, fund-data, macro-economics
/stanleychanh-tushare-finance-skill-for-claude-code:tushare-financefrom stanleychanh-tushare-finance-skill-for-claude-code
stanleychanh-tushare-finance-skill-for-claude-code@cascade-data-analytics is listed by joshuarweaver/cascade-data-analytics — review the source before installing
npx claudepluginhub joshuarweaver/cascade-data-analytics --plugin stanleychanh-tushare-finance-skill-for-claude-codeOther plugins' skills for the same job