pytdx
Search documents
量化交易使用通达信免费获取行业实时行情
Sou Hu Cai Jing· 2026-02-26 04:01
Core Viewpoint - The article discusses the use of pytdx, an open-source project, to access industry data without needing a VIP account, providing a method to retrieve stock market data through the Tongdaxin protocol. Group 1: Accessing Data - pytdx is a Python library that wraps around the Tongdaxin data protocol, allowing users to install it via pip [2][3] - Users can find available market servers using a built-in tool in pytdx that tests for the fastest IP address [3] - Industry constituent stocks cannot be directly retrieved through pytdx, but can be exported from the Tongdaxin software, which updates infrequently [4][5] Group 2: Data Export and Analysis - The process of exporting industry constituent stocks involves selecting the appropriate data and exporting it in a comma-separated format [5][6] - Once the industry data is obtained, it can be used for various analyses, such as comparing the strength of different industries, identifying leading stocks, and conducting correlation analysis between industry indices [10][11]