Agent skill
zhitu-data
Free stock data via 智兔数服. Real-time quotes, historical data, and technical indicators for A-shares, HK stocks, and funds. No registration required.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/zhitu-data
Metadata
Additional technical details for this skill
- openclaw
-
{ "install": [ { "id": "python-packages", "kind": "pip", "packages": [ "requests" ] } ], "requires": { "bins": [ "python3" ] } }
SKILL.md
zhitu-data
Free stock data skill powered by 智兔数服.
Setup
1. Install Dependencies
pip install requests
2. No Registration Required
智兔数服 provides a free test token, no registration needed!
# Free test token (built into scripts)
export ZHITU_TOKEN="ZHITU_TOKEN_LIMIT_TEST"
Features
- A-Share Real-time - Real-time quotes for all A-shares
- Hong Kong Stocks - HK stock data
- Fund Data - ETF and LOF fund quotes
- Beijing Exchange - 北交所 stock data
- Historical K-line - Daily, weekly, monthly data
- Technical Indicators - MACD, KDJ, BOLL, MA built-in
- No Registration - Completely free, no signup needed
- No Rate Limits - Unlimited calls with test token
Commands
Real-time Quotes
python scripts/zhitu_quote.py <code>
Historical Data
python scripts/zhitu_hist.py <code> [start_date] [end_date]
Technical Indicators
python scripts/zhitu_tech.py <code> <indicator>
Stock List
python scripts/zhitu_list.py [market]
Stock Code Format
- Shanghai A-share:
600000.SHor just600000 - Shenzhen A-share:
000001.SZor just000001 - ChiNext:
300001.SZor just300001 - STAR Market:
688001.SHor just688001 - Beijing Exchange:
430047.BJor just430047 - Hong Kong:
00001.HKor just00001 - Fund:
510300.SHor just510300
Examples
# A-share real-time quote
python scripts/zhitu_quote.py 000001
python scripts/zhitu_quote.py 600519.SH
# Historical data
python scripts/zhitu_hist.py 600519 20240101 20240312
# Technical indicators
python scripts/zhitu_tech.py 000001 MACD
python scripts/zhitu_tech.py 600519 KDJ
# Stock list
python scripts/zhitu_list.py
python scripts/zhitu_list.py sh
Technical Indicators
| Indicator | Description |
|---|---|
| MACD | Moving Average Convergence Divergence |
| KDJ | Stochastic Oscillator |
| BOLL | Bollinger Bands |
| MA | Moving Average |
File Structure
zhitu-data/
├── SKILL.md
└── scripts/
├── zhitu_quote.py # Real-time quotes
├── zhitu_hist.py # Historical K-line data
├── zhitu_tech.py # Technical indicators
└── zhitu_list.py # Stock list
Data Sources
- 智兔数服 - Free stock data API for A-shares, HK, funds
Features Comparison
| Feature | 智兔数服 | Other APIs |
|---|---|---|
| Registration | Not required | Usually required |
| Cost | Completely free | Free/Paid |
| A-Share Data | ✅ Full coverage | Partial |
| HK Stocks | ✅ Supported | Varies |
| 北交所 | ✅ Supported | Rare |
| Technical Indicators | ✅ Built-in | Varies |
| Rate Limits | Generous | Strict |
Notes
- Test token may have usage limits for high-frequency calls
- For production use, consider registering for a free API key
- Data is suitable for personal research and learning
- HK stock data may be delayed
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?