akshare
Installation
Summary
Real-time and historical financial data for Chinese and Asian markets via AkShare library.
- Covers A-shares, Hong Kong stocks, US stocks, futures, funds, and macroeconomic indicators with real-time quotes and historical daily/weekly/monthly data
- Supports multiple adjustment modes (forward, backward, or unadjusted) and returns pandas DataFrames for easy processing
- Includes macroeconomic data such as GDP, CPI, and PMI for market analysis
- Requires implementing custom caching and retry logic due to lack of built-in caching and potential rate limiting
SKILL.md
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