akshare
AkShare is a free Python library for pulling market data from Chinese exchanges and beyond. Query live prices and historical records for A-shares, Hong Kong stocks, US equities, futures, funds, and macroeconomic indicators—all returned as pandas DataFrames ready to analyze.
AkShare retrieves real-time and historical stock prices from Chinese exchanges including A-shares, Hong Kong, and US markets.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-02-08
AkShare retrieves real-time and historical stock prices from Chinese exchanges including A-shares, Hong Kong, and US markets. AkShare is a free Python library for pulling market data from Chinese exchanges and beyond. Query live prices and historical records for A-shares, Hong Kong stocks, US equities, futures, funds, and macroeconomic indicators—all returned as pandas DataFrames ready to analyze.
Use it when
- AkShare provides access to key Chinese macroeconomic indicators including GDP, CPI, PMI, and other market data.
- Yes, akshare supports querying Hong Kong exchange data and US stocks accessible through Chinese financial platforms.
Verify before relying
Read SKILL.md below before installing (16 files). Open directory: indexed for reading, not audited.
Install
succ985/openclaw-akshare-skill/openclaw-akshare-skill · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I get Chinese stock prices real-time with akshare?
AkShare retrieves live and historical stock prices from Chinese exchanges via simple Python calls. The library returns data as pandas DataFrames, making it straightforward to pull real-time quotes for A-shares, Hong Kong stocks, and US equities listed on Chinese platforms. Use akshare's built-in functions to access Shanghai and Shenzhen exchange data instantly.
What macroeconomic indicators can akshare fetch for China?
AkShare provides access to key Chinese macroeconomic indicators including GDP, CPI, PMI, and other market data. These indicators are returned as structured pandas DataFrames, enabling you to build financial analysis workflows that incorporate China's broader economic picture alongside stock and futures information.
Can akshare retrieve Hong Kong and US stock information?
Yes, akshare supports querying Hong Kong exchange data and US stocks accessible through Chinese financial platforms. The library fetches Hong Kong stock quotes and US equity information in the same DataFrame format as domestic A-shares, allowing unified analysis across multiple markets.
Does akshare provide futures and commodity market data?
AkShare includes functions to fetch China futures market data and commodity prices. You can pull historical and real-time futures quotes alongside other asset classes, enabling comprehensive analysis of Chinese commodity and derivatives markets within a single workflow.
What license does the akshare library use?
AkShare is released under the MIT license, making it free to use, modify, and distribute in both open-source and commercial projects. This permissive licensing ensures you can integrate akshare into your financial analysis applications without restrictions.
How does akshare format financial data for analysis?
AkShare returns all market data—stock prices, fund information, futures quotes, and economic indicators—as pandas DataFrames. This standard format makes it easy to perform calculations, merge datasets, and build financial analysis workflows without additional data transformation steps.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
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: ```python
Historical daily data
df =
(truncated - see the full file via the links below)
File tree — 15 files
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
SKILL.md
references/akshare_api.md
references/common_functions.md
scripts/IMPLEMENTATION_SUMMARY.md
scripts/README.md
scripts/VERIFICATION_REPORT.md
scripts/akshare_tool.py
scripts/example_usage.py
scripts/install_akshare.sh
scripts/test_basic.py
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Retrieve real-time and historical stock prices from Chinese exchanges”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Monitor real-time capital flows between mainland China and Hong Kong markets through Stock Connect channels. Northbound flows reveal foreign institutional appetite for A-shares, while Southbound flows show mainland investor positioning in HK assets. Includes sector allocation tracking, AH premium analysis, and composite scoring to identify cross-border risk sentiment.
strategy-generate lets you design trading strategies by defining entry/exit logic, then automatically backtests them across stocks, crypto, and other instruments. Write your signal engine in Python, configure your parameters, and the skill handles data loading and performance analysis—no boilerplate required.
Stock Price Query fetches live market data across Chinese A-shares, Hong Kong, and US equities, plus major indices. It handles single lookups or batch comparisons of multiple tickers in one call, returning current price, change percentage, open/high/low/close, volume, and market cap when available.
Alpha Vantage connects you to 20+ years of global financial data—equities, options, forex, crypto, commodities, and economic indicators—plus 50+ technical analysis tools. Query stock quotes, historical OHLCV, company fundamentals, earnings, news sentiment, and more with a free API key.
Tushare Finance connects you to over 220 Tushare Pro interfaces for retrieving Chinese financial market data across stocks, indices, funds, futures, and bonds. Query daily price movements, financial statements, and macroeconomic metrics like GDP and CPI with simple Python calls. Requires a Tushare token and supports A-shares, Hong Kong stocks, US equities, and more.
Tushare is a financial data interface that unifies access to market quotes and fundamentals through standardized APIs. It covers stocks, funds, futures, digital currencies, and corporate financials, designed for developers needing lightweight, real-time data retrieval.