easy-tdx is a Python library that connects to TongDaXin stock market data servers to retrieve real-time quotes, historical K-line charts, technical indicators, and sector information for Chinese A-shares (A 股), Hong Kong stocks, US stocks, and futures markets. It provides both a command-line tool and a Python API with support for 32+ technical indicators like MACD, KDJ, RSI, and BOLL. The library includes both synchronous and asynchronous interfaces, auto-selects the fastest server, and can also read historical data from locally installed TongDaXin software.
How It Works
You hear about a tool that can fetch Chinese stock market data without complicated setup
You install it with a simple command and everything is ready to use immediately
You enter a stock code and instantly see the current price, volume, and market data
With one command, you pull up K-line charts and technical indicators like MACD or RSI
Type simple commands like 'easy-tdx kline SZ 000001' to get instant results
Write a few lines of code to fetch data and process it in your own programs
You successfully combine price data, technical indicators, and sector information to understand the market
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.