
Akshare
Pull Chinese A-share, HK, US, futures, fund, and macro series through AkShare in Python when your agent is validating markets or building finance side projects.
Install
npx skills add https://github.com/succ985/openclaw-akshare-skill --skill akshareWhat is this skill?
- pip install akshare quick start with real-time A-share spot via stock_zh_a_spot_em
- Historical daily bars with symbol, date range, and qfq adjust parameters
- Hong Kong spot helpers and A-share code/name listing utilities
- Coverage called out for futures, funds, and macroeconomic indicators in the skill description
- Free open-source data access patterns instead of paid terminal APIs
Adoption & trust: 1.5k installs on skills.sh; 8 GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Market and macro pulls most often support early opportunity research before you commit capital or product scope, so Idea → research is the canonical entry shelf. The skill is oriented to discovering quotes, histories, and exchange lists—not shipping a trading UI—matching research-style competitor and market discovery.
Common Questions / FAQ
Is Akshare safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Akshare
# 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: ```bash pip install akshare ``` Basic stock quote: ```python import akshare as ak df = ak.stock_zh_a_spot_em() # Real-time A-share data ``` ## Stock Data ### A-Shares (A股) **Real-time quotes:** ```python # 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 = ak.stock_zh_a_hist(symbol="000001", period="daily", start_date="20240101", end_date="20241231", adjust="qfq") ``` **Stock list:** ```python # Get all A-share stock list df = ak.stock_info_a_code_name() ``` ### Hong Kong Stocks (港股) **Real-time quotes:** ```python df = ak.stock_hk_spot_em() ``` **Historical data:** ```python df = ak.stock_hk_hist(symbol="00700", period="daily", adjust="qfq") ``` ### US Stocks (美股) **Real-time data:** ```python df = ak.stock_us_spot_em() ``` ## Futures Data (期货) **Real-time futures:** ```python # Commodity futures df = ak.futures_zh_spot() ``` **Historical futures:** ```python df = ak.futures_zh_hist_sina(symbol="IF0") ``` ## Fund Data (基金) **Fund list:** ```python df = ak.fund_open_fund_info_em() ``` **Fund historical data:** ```python df = ak.fund_open_fund_info_em(fund="000001", indicator="单位净值走势") ``` ## Macroeconomic Indicators (宏观) **GDP data:** ```python df = ak.macro_china_gdp() ``` **CPI data:** ```python df = ak.macro_china_cpi() ``` **PMI data:** ```python df = ak.macro_china_pmi() ``` ## Common Parameters **Period (周期):** - `daily` - 日线 - `weekly` - 周线 - `monthly` - 月线 **Adjustment (复权):** - `qfq` - 前复权 - `hfq` - 后复权 - `""` - 不复权 ## Tips 1. **Data caching**: AkShare doesn't cache data, implement your own caching if needed 2. **Rate limiting**: Be mindful of request frequency to avoid being blocked 3. **Data format**: Returns pandas DataFrame, can be easily processed 4. **Error handling**: Network errors may occur, implement retry logic ## References For complete API documentation and advanced usage, see: - [references/akshare_api.md](references/akshare_api.md) - Detailed API reference - [references/common_functions.md](references/common_functions.md) - Commonly used functions - [https://akshare.akfamily.xyz/](https://akshare.akfamily.xyz/) - Official documentation # Changelog All notable changes to the openclaw-akshare-skill project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Added - Initial release of OpenClaw AkShare Skill - Support for A-shares real-time and historical data - Support for Hong Kong stocks - Support for US stocks - Support for futures data - Support for fund data - Support for macroeconomic indicators - Comprehensive documentation - Example scripts and tests - Installation scripts ### Documentation - SKILL.md with complete usage guide - API reference in references/akshare_api.md - Common functions guide in references/common_functions.md - Example usage scripts - Verification report ## [0.1.0] - 2025-02-08 ### Added - Initial commit - Basic skill structure - AkShare integration - Documen