tool
AKShare
created 2026-05-04 tool · finance · data · market-data · free · china
AKShare
Free, open-source Python library for financial market data. Originally focused on A-shares but has expanded to cover HK, US, futures, and forex.
Why It Matters
Zero-config fallback for any project that needs market data. No API key required for the basic tier. Used by vibe-trading as the default A-share source and as a fallback for HK/US/futures when Tushare or other paid sources are unavailable.
Coverage (per Vibe-Trading wiring)
- A-shares (mainland China equities)
- HK equities
- US equities
- Futures (China + global)
- Forex pairs
- ETFs (e.g.,
510300.SHrouted correctly to ETF endpoints)
Usage Pattern
In an agent stack, AKShare typically sits behind a routing layer that picks between AKShare (free), yfinance (HK/US free), Tushare (A-share paid), and exchange-specific APIs based on symbol format. See vibe-trading for one such routing implementation.
Caveats
- Endpoints occasionally drift; loaders need defensive fallbacks.
- Rate-limits exist but are forgiving for personal use.
- Symbol format matters:
000001.SZ,510300.SH,USDCNHetc. — wrong format = wrong endpoint.
Related
- Tushare — paid A-share alternative with more depth
- yfinance — HK/US fallback
- CCXT — crypto equivalent (100+ exchanges)
- vibe-trading — concrete usage in a multi-agent finance stack