skillfed

akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings!

akshare v1.18.91 3.0M downloads/30d#2,797 on PyPI22,028
Permissive license MIT Active released

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 akshare

uv

uv add akshare

poetry

poetry add akshare

Installing 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

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

financial data api pythonstock market data fetcherchinese stock dataquantitative trading datafutures options bonds datafinancial market data aggregatorquant research data library
financial-dataquantitative-researchmarket-data-aggregator

More Information Analysis packages