Overview of eltdx Capabilities
maineltdx is a Rust-driven Python API for the Tongdaxin (Tdx) market data protocol. It provides access to A-share market data including quotes, K-lines, company information (F10), and more.
Core Abstractions
- Modular API & Helpers: The preferred way for most users to fetch data (e.g.,
client.quotes,client.bars,client.helpers). - Native Protocol (7709/7615): For protocol research, users can interact directly with raw commands.
- MCP Tools: Provides market data and F10 capabilities to MCP clients.
- Cross-language Gateway: Allows non-Python languages (Java, Go, C#, Node.js) to call the service via HTTP JSON or WebSocket RPC.
Data Categories
- Market Quotes: Real-time snapshots, depth (5-level), and category-based lists.
- K-Lines & Intraday: Minute, day, week, month, etc., with support for adjustment factors.
- Corporate/F10: Company profiles, capital changes, financial basics, and announcements.
- Specialized Indicators: Auction data, short-line indicators, and real-time rankings.