jiangtaovan / tdxrs
Publictdxrs 是通达信 (TDX) 行情数据解析库的 Rust 高性能实现,通过 PyO3/maturin 提供原生 Python 接口。它无缝兼容 [tdxpy] 的 API,并将核心解析引擎以 Rust 重构,从而实现数量级的本地解析性能提升,尤其在海量历史数据处理场景下优势显著。
tdxrs is a high-performance library that gives Python developers easy access to Chinese stock market data. It connects to TongDaXin servers to fetch real-time stock quotes, historical price charts (K-lines), financial reports, and sector information. The library also reads local binary data files containing historical market data. Built in Rust for speed and wrapped for Python, it handles the complex data formats automatically so developers can focus on building their trading tools rather than parsing binary data.
How It Works
You're a Python developer building a trading tool and need real-time Chinese stock market data. You find tdxrs, a library that fetches stock prices much faster than alternatives.
With one simple command, you add tdxrs to your project. It comes with everything you need to start pulling market data right away.
The library automatically finds available servers and establishes a connection. You can also specify your own if you prefer.
Get real-time quotes, historical charts, and financial information directly from market data servers.
Read and analyze binary data files containing historical stock prices and financial reports.
Whether you need stock prices, candlestick charts, or company financials, everything comes back organized and ready to use in your analysis.
You have fast, reliable access to Chinese stock market data. Your analysis and trading algorithms can now run smoothly with real-time information.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.