Install
$ agentstack add skill-stanleychanh-tushare-finance-skill-for-claude-code-tushare-finance-skill-for-claude-code ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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/README.md)
数据获取流程
- 查找接口:根据需求在 [接口索引](reference/README.md) 找到对应接口
- 阅读文档:查看
reference/接口文档/[接口名].md了解参数 - 编写代码:
```python import tushare as ts
# 初始化(使用环境变量中的 Token) pro = ts.pro_api()
# 调用接口 df = pro.daily(tscode='000001.SZ', startdate='20241201', end_date='20241231') ```
- 返回结果:DataFrame 格式
参数格式说明
- 日期:YYYYMMDD(如 20241231)
- 股票代码:ts_code 格式(如 000001.SZ, 600000.SH)
- 返回格式:pandas DataFrame
接口文档参考
接口索引:[reference/README.md](reference/README.md)
接口文档按类别组织:
- 股票数据(39 个接口)
- 指数数据(18 个接口)
- 基金数据(11 个接口)
- 期货期权(16 个接口)
- 宏观经济(10 个接口)
- 港股美股(23 个接口)
- 债券数据(16 个接口)
参考资源
- Tushare 官方文档:https://tushare.pro/document/2
- API 测试工具:https://tushare.pro/document/1
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: StanleyChanH
- Source: StanleyChanH/Tushare-Finance-Skill-for-Claude-Code
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.