Tushare Finance
Data community Intermediate
Description
[](https://github.com/StanleyChanH/Tushare-Finance-Skill-for-Claude-Code) [](LICENSE) [](https://clawhub.com)
Installation
Terminal
claude install-skill https://github.com/StanleyChanH/Tushare-Finance-Skill-for-Claude-Code README
Tushare Finance Skill
[](https://github.com/StanleyChanH/Tushare-Finance-Skill-for-Claude-Code) [](LICENSE) [](https://clawhub.com)
获取中国金融市场数据的 OpenClaw Skill,支持 **220+ 个 Tushare Pro 接口**。
✨ 特性
- undefined
📥 安装
方法 1:通过 ClawHub(推荐)
clawhub install tushare-finance
方法 2:手动安装
git clone https://github.com/StanleyChanH/Tushare-Finance-Skill-for-Claude-Code.git
cd Tushare-Finance-Skill-for-Claude-Code
pip install -r requirements.txt
🔑 配置
获取 Tushare Token
- undefined
export TUSHARE_TOKEN="your_token_here"
# 或添加到 ~/.bashrc
echo 'export TUSHARE_TOKEN="your_token_here"' >> ~/.bashrc
source ~/.bashrc
🚀 快速开始
Python API
from scripts.api_client import TushareAPI
# 初始化客户端
api = TushareAPI()
# 查询股票日线行情
df = api.get_stock_daily("000001.SZ", "2024-01-01", "2024-12-31")
print(df.head())
# 查询公司基本信息
info = api.get_stock_info("000001.SZ")
print(info)
# 批量查询多只股票
stocks = ["000001.SZ", "000002.SZ", "600000.SH"]
data = api.batch_query(stocks, "2024-01-01", "2024-12-31")
命令行工具
# 查询单只股票
python scripts/quick_query.py --stock 000001.SZ --start 2024-01-01 --end 2024-12-31
# 批量查询
python scripts/quick_query.py --file stocks.txt --start 2024-01-01 --output result.csv
# 导出 Excel
python scripts/batch_export.py --stock 000001.SZ --start 2024-01-01 --end 2024-12-31 --format excel
📊 支持的数据类型
股票数据(39 个接口)
| 接口 | 说明 | 示例 |
|---|---|---|
daily |
日线行情 | api.get_stock_daily() |
stock_basic |
股票列表 | api.get_stock_list() |
fina_indicator |
财务指标 | api.get_financial_indicator() |
income |
利润表 | api.get_income_statement() |
balancesheet |
资产负债表 | api.get_balance_sheet() |
指数数据(18 个接口)
...
Related Skills
mcp-server-postgres
Read-only PostgreSQL database access.
Data community mcp-server-sqlite
SQLite database interaction and querying.
Data community mcp-server-google-maps
Google Maps integration for location data.
Data community Bitbucket Data Center
---
Data community Csv Data Summarizer
Automatically analyze CSV files and generate comprehensive insights with visualizations
Data community Data Contract
This document defines which files belong to the **system** (auto-updatable) and which belong to the **user** (never touched by updates).
Data community