mootdx
通达信数据读取接口.
What it is and what it does
Mootdx is a Python interface to Tongdaxin, a Chinese trading platform, for reading historical and real-time market data. It supports three main workflows: reading offline data from a local Tongdaxin installation (daily, minute, and timeline data), fetching live quotes and K-line data via network, and downloading financial datasets. The package wraps Tongdaxin's proprietary data formats and APIs, exposing them through a simple Python interface.
The library depends on httpx, tenacity, tdxpy, py-mini-racer, and several utility libraries (tqdm, prettytable, click, typing-extensions). It targets Python 3.8 and above and is classified as pre-alpha. Maintenance is dormant—the last release was 2024-05-04—but the repository remains publicly available with recent commits.
Use it for:
- Backtest trading strategies using historical daily or minute-level data from Tongdaxin.
- Fetch live market quotes and K-line data for real-time trading or monitoring applications.
- Download and parse financial datasets for quantitative analysis.
- Build data pipelines that ingest Tongdaxin market data into analytical or reporting systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Reads market data from Tongdaxin (a Chinese trading platform) via offline files or live quotes, and fetches financial data.
Yes, if you actively use Tongdaxin and need programmatic data access—the library is permissively licensed and has low install friction. However, dormant maintenance and reliance on Tongdaxin's continued server availability create risk. Verify that the live quote endpoints still work and that your Tongdaxin version is compatible before committing to production use. Not suitable if you need active upstream support.
Install
mootdx on PyPI
pip
pip install mootdxuv
uv add mootdxpoetry
poetry add mootdxInstalling mootdx
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—last release was May 2024, though the repository remains active with recent commits and 2197 stars. Eight runtime dependencies add moderate weight.
License in practice
MIT license permits commercial and private use with attribution. No licensing restrictions on adoption.
Quickstart
pip install mootdx
from mootdx.reader import Reader
reader = Reader.factory(market='std', tdxdir='C:/new_tdx')
reader.daily(symbol='600036')
Requires a local Tongdaxin installation directory to read offline data; py-mini-racer may not work on M1 macOS systems.
Verify before relying
- Whether live quote functionality requires active network access to Tongdaxin servers and whether those servers remain operational.
- Current compatibility with recent Tongdaxin platform versions and data format changes since last release.
- Stability and performance characteristics under production load with large datasets or frequent polling.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — httpx, tenacity, tdxpy, tqdm, py-mini-racer, prettytable, click, typing-extensions |
| Maintenance | dormant — 832 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 122,820/month — #11,930 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mootdx-0.11.7-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
tdxpyTdxPy provides a pure-Python interface to read…
permissive · top 15,000 on PyPI
baostockBaoStock retrieves historical China stock…
permissive · top 15,000 on PyPI
yahooqueryRetrieves financial data from Yahoo Finance…
permissive · top 15,000 on PyPI
metatrader5Connects Python to MetaTrader 5 Terminal to…
permissive · top 15,000 on PyPI
tushareFetches historical and real-time Chinese stock…
permissive · top 15,000 on PyPI
shioajiShioaji is a trading API for Taiwan's financial…
unclear · top 15,000 on PyPI
tradingeconomicsProvides Python access to over 300,000 economic…
permissive · top 15,000 on PyPI
vnaiVnAI provides a Python interface for accessing…
unclear · top 15,000 on PyPI
alpha-vantageFetches real-time and historical stock,…
permissive · top 15,000 on PyPI
yfinanceFetches financial and market data from Yahoo…
permissive · top 1,000 on PyPI