Agent skill
tushare-pro
Professional financial data via Tushare Pro. High-quality stock fundamentals, financial statements, and quantitative data.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tushare-pro
Metadata
Additional technical details for this skill
- openclaw
-
{ "install": [ { "id": "python-packages", "kind": "pip", "packages": [ "tushare", "pandas" ] } ], "requires": { "bins": [ "python3" ] } }
SKILL.md
tushare-pro
Professional financial data skill powered by Tushare Pro.
Setup
1. Install Dependencies
pip install tushare pandas
2. Get Tushare Token
- Register at Tushare Pro
- Get your API token from user center
- Set environment variable or pass to scripts
export TUSHARE_TOKEN="your-token-here"
Features
- Stock Basics - Basic info, IPO date, industry classification
- Financial Data - Balance sheet, income statement, cash flow
- Market Data - Daily prices, real-time quotes
- Shareholder Data - Top holders, institutional holdings
- Quantitative Data - Technical factors, market indicators
Commands
Stock Basic Info
python scripts/ts_stock_basic.py [ts_code]
Financial Statements
# Balance Sheet
python scripts/ts_balance_sheet.py <ts_code> [year]
# Income Statement
python scripts/ts_income.py <ts_code> [year]
# Cash Flow
python scripts/ts_cashflow.py <ts_code> [year]
Daily Market Data
python scripts/ts_daily.py <ts_code> [start_date] [end_date]
Shareholder Data
python scripts/ts_holders.py <ts_code>
Stock Code Format
Tushare uses XXXXXX.XX format:
- A-Shares:
000001.SZ(Shenzhen),600519.SH(Shanghai) - Index:
000001.SH(上证指数),399001.SZ(深证成指) - ETFs:
510300.SH(沪深300ETF)
Examples
# Set token
export TUSHARE_TOKEN="your-token"
# Stock basic info
python scripts/ts_stock_basic.py 000001.SZ
# Financial data
python scripts/ts_balance_sheet.py 600519.SH 2023
# Daily prices
python scripts/ts_daily.py 000001.SZ 20240101 20240312
# Top shareholders
python scripts/ts_holders.py 600519.SH
File Structure
tushare-pro/
├── SKILL.md
└── scripts/
├── ts_stock_basic.py # Stock basic information
├── ts_balance_sheet.py # Balance sheet data
├── ts_income.py # Income statement
├── ts_cashflow.py # Cash flow statement
├── ts_daily.py # Daily market data
└── ts_holders.py # Shareholder data
Data Sources
- Tushare Pro - Professional financial data platform
Usage Limits
| Version | Daily Calls | Features |
|---|---|---|
| Free | 200 | Basic data, limited history |
| Pro | 5000+ | Full data, longer history |
Get more points by registering and completing tasks on Tushare website
Notes
- Requires Tushare account and token
- Free version has daily call limits
- Pro version requires points for advanced data
- Data quality is high, suitable for quantitative analysis
- Financial data is updated quarterly
Links
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?