skillfed

mootdx

通达信数据读取接口.

mootdx v0.11.7 122.8K downloads/30d#11,930 on PyPI2,197
Permissive license MIT DORMANT released

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 mootdx

uv

uv add mootdx

poetry

poetry add mootdx

Installing 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

Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

tongdaxin data readerchinese stock market datatdx offline quotestrading platform data apifinancial data downloader
market-datachinese-financetrading-platform

More Internet packages