akshare
AKShare is an elegant and simple financial data interface library for Python, built for human beings!
What it is and what it does
AKShare is a Python library that simplifies fetching financial market data from multiple Chinese and international sources—stocks, options, futures, bonds, funds, indices—by wrapping them under a single, consistent API. It aggregates data from exchanges and financial websites (Sina Finance, East Money, Jin10, and others) and returns results as pandas DataFrames, making it easy to load historical prices, real-time quotes, and market metadata into analysis workflows.
The library includes an offline interface registry and search function, so you can discover available data endpoints by keyword without network calls—useful for programmatic resolution of data requests. It is designed for quantitative researchers, traders, and data analysts who work primarily with Chinese markets but also need access to US stock data. All data is provided for academic and research purposes only, and the maintainers note that some interfaces may be removed due to external factors.
Use it for:
- Fetch historical daily OHLCV data for Chinese A-shares to backtest trading strategies or analyze price patterns.
- Retrieve real-time convertible bond quotes and metadata (conversion price, premium rate, yield-to-maturity) for bond trading analysis.
- Build a quantitative research pipeline that discovers available data endpoints by keyword search, then loads them into pandas for analysis.
- Aggregate options and futures data from multiple exchanges for portfolio risk modeling or derivative pricing studies.
- Populate a local database with daily market snapshots (stocks, funds, indices) for offline research without repeated API calls.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
AKShare fetches financial market data (stocks, options, futures, bonds, funds) from multiple Chinese and international sources via a unified Python API, with built-in interface search and metadata lookup.
Yes. AKShare is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It is well-suited for quantitative research and trading workflows focused on Chinese markets. The main caveat is that data availability depends on third-party sources and interfaces may be removed; verify that the specific endpoints you need are currently available before building production systems on it.
Install
akshare on PyPI
pip
pip install akshareuv
uv add aksharepoetry
poetry add akshareInstalling akshare
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with recent commits and 22028 GitHub stars. Supports current Python versions (3.11–3.14) and has no known vulnerabilities.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for proprietary projects and closed-source applications.
Quickstart
pip install akshare
import akshare as ak
stock_data = ak.stock_zh_a_hist(symbol="000001", period="daily", start_date="20170301", end_date="20231022")
print(stock_data)
Requires Python 3.11 or higher (64-bit).
Verify before relying
- Whether all data sources remain consistently available or if interface removal (mentioned in statement) is frequent.
- Real-world latency and rate-limiting behavior when fetching large historical datasets.
- Whether the search and interface_info functions work reliably for LLM-driven discovery workflows.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 16 — beautifulsoup4, lxml, pandas, requests, curl_cffi, html5lib, xlrd, urllib3, tqdm, openpyxl, jsonpath, tabulate, decorator, mini-racer, py-mini-racer, akracer |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,990,335/month — #2,797 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: akshare-1.18.91-py3-none-any.whl
Keywords: stock, option, futures, fund, bond, index, air, finance, spider, quant, quantitative, investment, trading, algotrading, data
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
tushareFetches historical and real-time Chinese stock…
permissive · top 15,000 on PyPI
efinanceFetches historical and real-time stock, fund,…
permissive · top 15,000 on PyPI
tdxpyTdxPy provides a pure-Python interface to read…
permissive · top 15,000 on PyPI
gs-quantGS Quant is a Python toolkit for quantitative…
permissive · top 15,000 on PyPI
tradingeconomicsProvides Python access to over 300,000 economic…
permissive · top 15,000 on PyPI
yahooqueryRetrieves financial data from Yahoo Finance…
permissive · top 15,000 on PyPI
baostockBaoStock retrieves historical China stock…
permissive · top 15,000 on PyPI
QuantLibQuantLib provides Python bindings to a C++…
permissive · top 5,000 on PyPI
mootdxReads market data from Tongdaxin (a Chinese…
permissive · top 15,000 on PyPI
pykrxScrapes Korean stock and bond market data from…
permissive · top 15,000 on PyPI