explaingit

waditu/tushare

14,878Python

TLDR

TuShare is a Python toolkit for collecting financial market data, focused on Chinese stocks and related instruments like futures.

Mindmap

A visual breakdown will appear here once this repo is fully enriched.

In plain English

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.

Open on GitHub → Explain another repo

Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.