tushare
A utility for crawling historical and Real-time Quotes data of China stocks
Decision gist · record as of 2026-08-14
Yes, if you need Chinese stock market data. The package has low install friction, permissive licensing, no known vulnerabilities, and active maintenance. Caveat: verify that the underlying data sources remain accessible and that real-time functions meet your latency and reliability requirements, as web-scraping-based APIs can be fragile.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel and seven common dependencies (pandas, requests, lxml, simplejson, bs4, websocket-client, tqdm).
- Marked active with a recent release 142 days ago.
License · maintenance · safety
BSD (permissive) — BSD permissive license allows use, modification, and distribution with minimal restrictions—suitable for commercial and private projects.
last release 2026-03-25 (142 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 613,999 downloads/mo, #5,750 on PyPI
Alternatives
Verify before relying
pip install tushare
import tushare as ts
ts.get_hist_data('600848')- Whether the package's data sources (Tencent, Huatai, Yinhe Securities) remain active and reliable
- Current API rate limits or authentication requirements not documented in the excerpt
- Whether real-time data functions still work after recent maintenance fixes
What it is and what it does
TuShare is a Python library that crawls historical and real-time stock market data for Chinese securities. It wraps multiple financial data providers and returns results as pandas DataFrames, making it straightforward to load, analyze, and export market data to CSV, Excel, JSON, or databases like MySQL and MongoDB.
The package targets financial analysts, pandas learners, and researchers interested in Chinese market data. It depends on standard web-scraping and data-processing libraries (requests, lxml, bs4, websocket-client) and uses pandas as its primary output format, making it compatible with the broader Python data science ecosystem.
Use it for
- Retrieve historical OHLC data for a Chinese stock ticker to build backtesting datasets
- Stream real-time tick snapshots from Tencent or other brokers for live trading systems
- Export daily market quotes to CSV or Excel for manual analysis in spreadsheet tools
- Load stock data directly into pandas for technical indicator calculation and charting
- Populate a local MySQL or MongoDB database with historical market snapshots for research
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Chinese stock market data.
The package has low install friction, permissive licensing, no known vulnerabilities, and active maintenance. Caveat: verify that the underlying data sources remain accessible and that real-time functions meet your latency and reliability requirements, as web-scraping-based APIs can be fragile.
Install
tushare on PyPI
Before you install
Low install friction with a pure-Python wheel and seven common dependencies (pandas, requests, lxml, simplejson, bs4, websocket-client, tqdm). Marked active with a recent release 142 days ago.
License in practice
BSD permissive license allows use, modification, and distribution with minimal restrictions—suitable for commercial and private projects.
Quickstart
pip install tushare
import tushare as ts
ts.get_hist_data('600848')
Verify before relying
- Whether the package's data sources (Tencent, Huatai, Yinhe Securities) remain active and reliable
- Current API rate limits or authentication requirements not documented in the excerpt
- Whether real-time data functions still work after recent maintenance fixes
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagespandasrequestslxmlsimplejsonbs4websocket-clienttqdm |
| Maintenance | Actively maintained 142 days since the last release |
| First released | |
| Downloads | 613,999 / month, #5,750 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: tushare-1.4.29-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “historical stock quotes”
- tushareFetches historical and real-time Chinese stock market data and…
- finnhub-pythonFinnhub-python is a client library for the Finnhub Stock API,…
- alpha-vantageFetches real-time and historical stock, cryptocurrency, forex, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Information Analysis packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyarrow provides Python bindings to Apache Arrow's C++ libraries for efficient columnar data processing, serialization, and interoperability with pandas, NumPy, and other Python ecosystem tools.
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
Snowpark Python provides APIs to query and process data directly in Snowflake without moving data to your local system, with support for both native Snowpark and pandas-compatible interfaces.
Install it if you use Snowflake and want to process data without moving it to your application layer.
See also akshare · baostock · alpha-vantage · fear-and-greed · finlab · tickflow · finance-datareader · yahooquery · stockstats · pykrx