Home / Market & alternative data

tushare

Market & alternative data

Pandas frames of China stock history and live quotes

What it is

A Python package that loads historical bars and realtime quotes for China-listed stocks into pandas DataFrames. Those frames can be saved as CSV, Excel, or JSON, or inserted into MySQL or MongoDB, and the documented first call asks for history by stock code. Analysts and learners working on China market data with pandas or NumPy are the audience. Realtime quote helpers are crawler builds against public web pages, including a Tencent source and broker quote pages, so they fail when those pages change, and the package does not open an exchange connection.

At a glance

RecommendedOur rating, based on popularity, maintenance and how ready it is for real use.

Best forProfessional quants
Used forData source, Data analysis
MarketsChina A-shares
StackPython
Learning curveEasy to start
Practical valueHigh practical value
CostFree, with paid APIs
HardwareNo GPU needed
In the author's words

A utility for crawling historical and Real-time Quotes data of China stocks. (Last updated: 2024-08-27).

Visit website ↗This week's trending tools中文页面

Similar tools