Analysis updated 2026-06-24
Download daily OHLCV history for a list of A-share tickers and load it into pandas for backtesting.
Stream realtime quotes for a watchlist of Chinese stocks into a local Jupyter notebook.
Pull tick-level intraday trades for one stock to study microstructure or build a feature set.
Combine futures, fund, and stock bars through the TuShare Pro generic bar interface for a multi-asset model.
| waditu/tushare | llmware-ai/llmware | pjialin/py12306 | |
|---|---|---|---|
| Stars | 14,878 | 14,860 | 14,896 |
| Language | Python | Python | Python |
| Last pushed | — | 2026-05-17 | — |
| Maintenance | — | Maintained | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 4/5 | 3/5 |
| Audience | data | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
pip install tushare and a working pandas install are enough, Pro features need a free token from tushare.pro.
TuShare is a Python toolkit for collecting financial market data, focused on Chinese stocks and related instruments like futures. The README describes it as a tool that covers the full path from collecting the raw data, cleaning and processing it, and storing it locally. It is aimed at quantitative analysts and people learning data analysis who need a simple way to pull market data into Python. The library returns data as pandas DataFrames, which is the standard table-like structure used in Python for data work. The README shows short code samples: ts.get_hist_data('600848') returns the historical daily trading data for a single stock, including open, high, low, close, volume, percentage change, and several moving averages. There are also calls for adjusted historical data, all stocks for the most recent trading day, tick-level intraday trades, and real-time quotes for one or more stocks at once. There is a newer service called TuShare Pro hosted at tushare.pro, mentioned at the top of the README. Pro adds coverage for futures, weekly and monthly A-share data, and a generic bar interface that handles stocks, funds, futures, and digital currencies, including adjusted price series. Installation is by pip install tushare, by running setup.py install, or by downloading from PyPI. The only listed dependency is pandas. Python 2 and Python 3 are both noted as supported. The README also lists QQ chat groups and a WeChat public account where the maintainers post updates and documentation.
TuShare is a Python toolkit that pulls Chinese stock, futures, and fund market data into pandas DataFrames for quantitative analysis.
Mainly Python. The stack also includes Python, Pandas, PyPI.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly data.
This repo across BitVibe Labs
Verify against the repo before relying on details.