
In simple English
This tool downloads financial numbers into your Python scripts with one line of code. It pulls stock prices, bond figures, and economic indicators from public websites. You can use it to test trading strategies or build your own market dashboard. It costs nothing to use, but public websites often change their layout and break the data feed. You will need to update the library often to keep things working.
What it is
AKShare is a financial data interface library for Python (a programming language used for data analysis and software building). It aggregates data from multiple public sources into a single set of functions.
What it is good for
Solo builders and researchers who need historical or real-time market data for Chinese stocks, bonds, futures, and macroeconomic indicators without paying for a commercial data provider.
- Pulls hundreds of financial data series with simple function calls.
- Includes an offline search tool to find the right function name from keywords.
- Free to use under an open-source licence with no required subscription.
- Relies on public web pages, so upstream layout changes often break specific functions.
- Documentation is primarily in Chinese, which can slow down non-native readers.
- Requires Python 3.11 or higher and some coding skill to parse and store the data.
Paid financial data feeds and manual web scraping of exchange tables.
Pandas for data cleaning and mplfinance for drawing candlestick charts.
- waditu/tushare15k stars
Another popular Python library for financial data focused on Chinese markets, requiring a token and registration.
- jesse-ai/jesse8.7k stars
A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.
- hummingbot/hummingbot20k stars
A free framework for writing and running automated trading programs on cryptocurrency exchanges.
- lballabio/QuantLib7.7k stars
The long-established free library for pricing and risk-managing financial instruments.
source venv/bin/activate pip install akshare --upgrade