AI Summary本 skill 通过 Tushare Pro API 获取中国金融市场数据,支持 220+ 个数据接口。 1. 访问 https://tushare.pro 注册 1. 查找接口:根据需求在 接口索引 找到对应接口
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "tushare-finance" skill in my project. Please run this command in my terminal: # Install skill into your project mkdir -p .claude/skills/Tushare-Finance-Skill-for-Claude-Code && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/Tushare-Finance-Skill-for-Claude-Code/SKILL.md "https://raw.githubusercontent.com/StanleyChanH/Tushare-Finance-Skill-for-Claude-Code/master/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。
Tushare 金融数据 Skill
本 skill 通过 Tushare Pro API 获取中国金融市场数据,支持 220+ 个数据接口。
1. Token 配置
询问用户:是否已配置 Tushare Token? 如未配置,引导用户: • 访问 https://tushare.pro 注册 • 获取 Token • 配置环境变量:export TUSHARE_TOKEN="your_token"
2. 验证依赖
检查 Python 环境: `bash python -c "import tushare, pandas; print('OK')" ` 如报错,安装依赖: `bash 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() | 居民消费价格指数 | 完整接口列表:查看 接口文档索引
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster