AKShare is a Python package that fetches stocks, futures, funds, bonds, FX, and macroeconomic series from many public sources. Results come back as pandas DataFrames with Chinese column names.
Overview
AKShare wraps a large catalog of data endpoints behind simple Python calls so researchers and quants can pull market and economic figures without building scrapers themselves. Coverage spans equities, indices, funds, derivatives, fixed income, currencies, spot commodities, crypto, calendars, and alternative datasets, with naming conventions that encode category, market, topic, and upstream provider.
The project ships an offline interface registry and keyword search so programs—or AI assistants—can map a plain-language request to the correct function without browsing docs manually. Recent releases unified hundreds of endpoint names around a consistent pattern and document how daily versus historical quotes differ.
Companion AKTools can expose the same capabilities as an HTTP API for other languages, and as an MCP server so tools like Claude Desktop or Cursor can search interfaces, describe parameters, and fetch rows through a small set of read-only tools. Data is intended for academic and research use; upstream site changes can retire individual endpoints over time.
Install via pip or uv on 64-bit Python 3.11.5 or newer. The design favors short scripts that compose with the wider Python data stack rather than a standalone GUI or hosted service.
Key features
- Nearly 1000 finance and macro data endpoints
- pandas DataFrame output with Chinese headers
- Offline keyword search across interface catalog
- Structured API names by asset class and source
- HTTP deployment via companion AKTools
- MCP tools for AI-driven data lookup
- Categories for stocks, futures, bonds, and macro
Use cases
- Quantitative research and backtesting data feeds
- Academic finance and economics studies
- Automated screeners and factor pipelines
- AI assistants answering market data questions
- Cross-language access through HTTP API