Home / Market & alternative data
pytdx
Python client for TongDaXin market-data protocols
What it is
A Python implementation of TongDaXin binary market-data protocols and local quotation-file formats. It lets researchers study and interact with the protocol used by the TongDaXin platform for quotes and historical data. Developers investigating Chinese market-data interfaces or reverse-engineering binary quotation formats are the intended audience. The project is personal learning code, explicitly archived on GitHub with no maintenance, and non-commercial use only, so expect an outdated codebase.
At a glance
Not recommendedOur rating, based on popularity, maintenance and how ready it is for real use.
| Best for | Developers |
|---|---|
| Used for | Data source, Data analysis |
| Markets | China A-shares |
| Stack | Python |
| Learning curve | Moderate learning curve |
| Practical value | Medium practical value |
| Cost | Free and open source |
| Hardware | No GPU needed |
| Maintenance | Archived, no longer maintained |
GitHub stars, last 30 days
Daily snapshots since 2026-09-12 (up to 30 days): โ3 over the period, now 1,551. Gaps mean no snapshot was taken that day.
Archived [protocol implementation](https://github.com/rainx/pytdx/tree/master) retained for studying TongDaXin binary market-data protocols and local quotation-file formats.
Similar tools
Elegant Python interface for open financial data
Pythonic downloader for Yahoo! Finance market data
Free searchable database of 300,000+ financial symbols
Unified Python API for downloading market data from many sources
Open-source financial data platform with Python, CLI, and REST access
LLM multi-agent investment research framework specialized for A-shares