szwzz/astockpursue/mootdx
Claude Code and agent skill by szwzz/astockpursue
- community
Checking that the SKILL.md file is still in the repository.
MooTDX — TCP direct connection to TDX (通达信) for A-share K-line data. Free, no API key, no IP blocking. Supports daily/weekly/monthly/minute OHLCV + level-2 order book + tick-by-tick trades.
Install
npx vskill@latest install szwzz/astockpursue/mootdxSKILL.md
The same SKILL.md was published earlier as szwzz/astockpursue/mootdx.
MooTDX (通达信 TCP 直连)
Overview
MooTDX connects directly to TDX (通达信) servers via TCP protocol, providing free A-share market data without any API key or registration. Unlike HTTP-based data sources, TCP connections are not subject to IP-based rate limiting.
- K-line: daily / weekly / monthly / 1m / 5m / 15m / 30m / 60m
- 分时图 (Minute line): per-minute price/volume/amount for a single trading day
- Level-2: 五档盘口 (5-level order book) + 逐笔成交 (tick-by-tick)
- No auth: no registration, no token, no IP blocking
- Speed: TCP direct connection, lower latency than HTTP polling
The project has a built-in MooTDX DataLoader at backtest/loaders/mootdx_loader.py. When backtesting, set source: "mootdx" or rely on source: "auto" (MooTDX is the #1 fallback for A-shares).
Quick Start
分时图 (Minute Line) — Per-Minute Price Trace
The DataLoader exposes two dedicated methods for 分时图 data (not OHLCV K-line — this is the actual tick-level price trace per minute):
Single stock, single day
Multiple stocks, date range
Direct mootdx API (for custom use)
Limitations
- History: TDX server only keeps ~5–10 trading days of minute-line data
- Non-trading days: returns
None(weekends, holidays, suspended) - Format: This is NOT OHLCV — each row is one minute's price/volume/amount
- For intraday backtesting: use
interval="1m"with the standardfetch()method (1-minute OHLCV bars) - For 分时图 visualization: use
fetch_minute_line()/fetch_minute_lines()
Available Intervals (K-line)
| Interval | frequency | Description | |
|---|---|---|---|
| 1m | 8 | 1-minute bars | |
| 5m | 0 | 5-minute bars | |
| 15m | 1 | 15-minute bars | |
| 30m | 2 | 30-minute bars | |
| 60m | 3 | 60-minute bars | |
| 1D | 9 | Daily bars (default) | |
| 1W | 5 | Weekly bars | |
| 1M | 6 | Monthly bars |
Notes
- Code format:
600519.SHor just600519(the DataLoader normalizes automatically) - No authentication or API key required
- TCP port (7709) must be accessible — no special firewall rules needed in most environments
- Not available on PyPI by default — the project installs it via
pip install --no-deps mootdxto avoid the httpx version conflict
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingservices/python/src/skills/mootdx/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/szwzz/astockpursue/mootdx)