Skip to content

Mootdx A-Share Data (Retired)

Fetches China A-share market prices via TDX TCP servers; now retired from default use

Stars
37,433
Licence
MIT
Files
1 file

What it does

This skill teaches an AI agent how to pull historical and intraday stock price data for Chinese A-share markets (Shanghai, Shenzhen, Beijing exchanges) directly from TDX (通达信) market data servers using the mootdx Python library. The skill's own status note says the TDX servers stopped answering this protocol around October 2026, so the source has been removed from the automatic fallback chain and is only used when a user explicitly asks for source="mootdx". For most A-share data, the skill recommends tencent, eastmoney, or baostock instead.

Great for

  • Developers maintaining the Vibe-Trading codebase who need to understand or legacy-support the mootdx loader
  • Users who explicitly request mootdx as a data source and accept that it may return errors or no data
  • Researchers reviewing how A-share data loaders were built

Skip it if

  • Anyone expecting reliable live A-share data: the skill states the TDX servers no longer answer the protocol, so calls may fail or return nothing
  • Beijing exchange (北交所) symbols, futures, and options: the skill documents these as missing or empty upstream
  • Backtests needing unadjusted (不复权) prices or minute history longer than about 3 months, since the skill says the data is forward-adjusted and paging is capped

Try asking

  • “Use mootdx to fetch daily OHLCV for 000001 from 2025-01-01 to 2025-02-01”
  • “Pull 15-minute bars for 600519 using the mootdx source”
  • “Show me the frequency codes and symbol formats the mootdx loader accepts”
Step-by-step guide: how to use Mootdx A-Share Data (Retired)Install, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    mootdx.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip mootdx.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip mootdx.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Check the retirement status first; prefer tencent, eastmoney, or baostock for A-share OHLCV unless you specifically need mootdx
  • Use get_k_data for daily ranges and bars() with offset for intraday, since bars() only returns the latest N rows
  • Expect the first call to be about 2 seconds slower while the fastest server is selected

What's inside

  • SKILL.md

Redistributed unmodified from HKUDS/Vibe-Trading under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.