If you need Chinese market data without wrestling with exchange APIs or paid Bloomberg terminals, this is your straightforward option. Pulls real-time and historical data from Shanghai, Shenzhen, and Hong Kong exchanges, plus futures, funds, and macro indicators like GDP and CPI. The library returns everything as pandas DataFrames, which is convenient, but there's no built-in caching or rate limiting, so you'll need to handle that yourself. Best for building dashboards, backtesting strategies, or analyzing A-shares without the usual data access headaches. Just be aware it's community-maintained, so documentation quality varies and some functions may break when data sources change.
- skills.sh installs
- 1.8K
- GitHub stars
- 11
- last updated
- Aug 21, 2026
Install
$ npx -y skills add succ985/openclaw-akshare-skill --skill akshare --agent claude-codeInstalls into .claude/skills of the current project.
Files
AkShare - Chinese Financial Data
Overview
AkShare is a free, open-source Python library for accessing Chinese financial market data. This skill provides guidance for fetching data from Chinese exchanges including Shanghai Stock Exchange, Shenzhen Stock Exchange, Hong Kong Exchange, and more.
Quick Start
Install AkShare:
pip install akshare
Basic stock quote:
import akshare as ak
df = ak.stock_zh_a_spot_em() # Real-time A-share data
Stock Data
A-Shares (A股)
Real-time quotes:
# All A-shares real-time data
df = ak.stock_zh_a_spot_em()
# Single stock real-time quote
df = ak.stock_zh_a_spot()
Historical data:
# Historical daily data
df = ak.stock_zh_a_hist(symbol="000001", period="daily", start_date="20240101", end_date="20241231", adjust="qfq")
Stock list:
# Get all A-share stock list
df = ak.stock_info_a_code_name()
Hong Kong Stocks (港股)
Real-time quotes:
df = ak.stock_hk_spot_em()
Historical data:
df = ak.stock_hk_hist(symbol="00700", period="daily", adjust="qfq")
US Stocks (美股)
Sponsors
Details
- Repository
- github.com/succ985/openclaw-akshare-skill
- Category
- Finance & Trading
