tushare-finance
获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。
Skill by Serennity007
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/serennity007-tushare-finance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 3
codeload.github.com· found in install commandgithub.com· found in codetushare.pro· found in code
Files it touches
~/.claude/skills/tushare-finance
What's inside
- Skill name
tushare-finance- Description
- 获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。
- License
- MIT
- Instructions
- 83 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: "tushare-finance" does not match folder "StanleyChanH__Tushare-Finance-Skill"
- allowed-tools: must be a space-separated string
Files (200)
- SETUP.md · .github/
- sync-docs.yml · .github/workflows/
- sync-to-clawhub.yml · .github/workflows/
- .gitignore
- LICENSE
- QUICK_REFERENCE.md
- README.md
- SKILL.md
- SOURCE.md
- banner.png · images/
- metadata.json
- README.md · reference/
- all_links.json · reference/
- AH股比价.md · reference/接口文档/
- ETF份额规模.md · reference/接口文档/
- ETF分钟行情.md · reference/接口文档/
- ETF基准指数.md · reference/接口文档/
- ETF基本信息.md · reference/接口文档/
- ETF复权因子.md · reference/接口文档/
- ETF实时日线.md · reference/接口文档/
- ETF日线行情.md · reference/接口文档/
- Hibor利率.md · reference/接口文档/
- IPO新股上市.md · reference/接口文档/
- LPR贷款基础利率.md · reference/接口文档/
- Libor利率.md · reference/接口文档/
- ST股票列表.md · reference/接口文档/
- Shibor利率.md · reference/接口文档/
- Shibor报价数据.md · reference/接口文档/
- 上市公司公告.md · reference/接口文档/
- 上市公司基本信息.md · reference/接口文档/
- 上市公司管理层.md · reference/接口文档/
- 上海黄金基础信息.md · reference/接口文档/
- 上海黄金现货日行情.md · reference/接口文档/
- 上证e互动问答.md · reference/接口文档/
- 业绩快报.md · reference/接口文档/
- 业绩预告.md · reference/接口文档/
- 东方财富App热榜.md · reference/接口文档/
- 东方财富概念成分.md · reference/接口文档/
- 东方财富概念板块.md · reference/接口文档/
- 东财概念和行业指数行情.md · reference/接口文档/
- 中信行业成分.md · reference/接口文档/
- 中信行业指数日行情.md · reference/接口文档/
- 中央结算系统持股明细.md · reference/接口文档/
- 中央结算系统持股统计.md · reference/接口文档/
- 主营业务构成.md · reference/接口文档/
- 交易日历.md · reference/接口文档/
- 仓单日报.md · reference/接口文档/
- 债券回购日行情.md · reference/接口文档/
- 做市借券交易汇总(停).md · reference/接口文档/
- 全国电影剧本备案数据.md · reference/接口文档/
- 全国电视剧备案公示数据.md · reference/接口文档/
- 全球财经事件.md · reference/接口文档/
- 分红送股数据.md · reference/接口文档/
- 利润表.md · reference/接口文档/
- 券商月度金股.md · reference/接口文档/
- 券商盈利预测数据.md · reference/接口文档/
- 前十大流通股东.md · reference/接口文档/
- 前十大股东.md · reference/接口文档/
- 北交所新旧代码对照.md · reference/接口文档/
- 南华期货指数行情.md · reference/接口文档/
- …and 140 more
SKILL.md (first lines)
# 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 环境:
```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()` | 居民消费价格指数 |
**完整接口列表**:查看 [接口文档索引](reference/README.md)
## 数据获取流程
1. **查找接口**:根据需求在 [接口索引](reference/README.md) 找到对应接口
2. **阅读文档**:查看 `reference/接口文档/[接口名].md` 了解参数
3. **编写代码**:
```python
import tushare as ts
# 初始化(使用环境变量中的 Token)
pro = ts.pro_api()
# 调用接口
df = pro.daily(ts_code='000001.SZ', start_date='20241201', end_date='20241231')
```
4. **返回结果**: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/1From Serennity007/awesome-stock-quant-skills, MIT.
More from Serennity007/awesome-stock-quant-skills
- 0.618score
dex-pool-analysis
Serennity007
AMM pool mechanics comparison across Raydium, Orca, and Meteora including fee structures, pool types, creation patterns, and volume efficiency
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
crypto-tax-export
agipro
Export trade history and tax calculations in formats compatible with Koinly, CoinTracker, CoinLedger, TokenTax, and IRS Form 8949
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
feature-engineering
Serennity007
Feature construction from market data for ML trading models including price, volume, on-chain, and microstructure features
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
coingecko-api
Serennity007
Broad crypto market data from CoinGecko covering 13,000+ tokens.
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
correlation-analysis
Serennity007
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
cost-basis-engine
agipro
Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and proportional average cost with partial sell handling
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
custom-indicators
Serennity007
Crypto-native indicators including NVT ratio, exchange flow, funding rate signals, holder momentum, and smart money flow
SkillBFreshness: B★ 41Claude Code +9 - 0.617score
ibkr-options-assistant
Serennity007
Interactive Brokers options & stock trading assistant.
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
backtrader
Serennity007
Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
birdeye-api
Serennity007
Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
cointegration-analysis
Serennity007
Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
defillama-api
Serennity007
Free DeFi analytics across all chains — TVL, token prices, DEX volumes, fees/revenue, stablecoins, and bridges
SkillBFreshness: B★ 41Claude Code +9
Signals
- Stars
- 41
- Forks
- 8
- Open issues
- 1
- Last commit (this folder)
- Aug 25, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Serennity007
- 0.618score
dex-pool-analysis
Serennity007
AMM pool mechanics comparison across Raydium, Orca, and Meteora including fee structures, pool types, creation patterns, and volume efficiency
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
custom-indicators
Serennity007
Crypto-native indicators including NVT ratio, exchange flow, funding rate signals, holder momentum, and smart money flow
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
correlation-analysis
Serennity007
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
coingecko-api
Serennity007
Broad crypto market data from CoinGecko covering 13,000+ tokens.
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
feature-engineering
Serennity007
Feature construction from market data for ML trading models including price, volume, on-chain, and microstructure features
SkillBFreshness: B★ 41Claude Code +9 - 0.617score
ibkr-options-assistant
Serennity007
Interactive Brokers options & stock trading assistant.
SkillBFreshness: B★ 41Claude Code +9
Cite this page
tushare-finance skill. Agent Mart. https://agentmart.dev/skills/serennity007-tushare-finance (last updated 2026-10-24)