akshare

succ985/openclaw-akshare-skill · updated Apr 8, 2026

$npx skills add https://github.com/succ985/openclaw-akshare-skill --skill akshare
0 commentsdiscussion
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
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

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 (美股)

Real-time data:

df = ak.stock_us_spot_em()

Futures Data (期货)

Real-time futures:

# Commodity futures
df = ak.futures_zh_spot()

Historical futures:

df = ak.futures_zh_hist_sina(symbol="IF0")

Fund Data (基金)

Fund list:

df = ak.fund_open_fund_info_em()

Fund historical data:

df = ak.fund_open_fund_info_em(fund="000001", indicator="单位净值走势")

Macroeconomic Indicators (宏观)

GDP data:

df = ak.macro_china_gdp()

CPI data:

df = ak.macro_china_cpi()

PMI data:

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:

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.543 reviews
  • Pratham Ware· Dec 28, 2024

    Useful defaults in akshare — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Mei Yang· Dec 28, 2024

    Solid pick for teams standardizing on skills: akshare is focused, and the summary matches what you get after install.

  • Emma Sanchez· Dec 24, 2024

    I recommend akshare for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Hassan Thompson· Dec 12, 2024

    We added akshare from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Zara Malhotra· Nov 23, 2024

    akshare reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Yash Thakker· Nov 19, 2024

    akshare is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Zara Brown· Nov 19, 2024

    We added akshare from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Emma Desai· Nov 15, 2024

    Keeps context tight: akshare is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Li Farah· Nov 3, 2024

    Solid pick for teams standardizing on skills: akshare is focused, and the summary matches what you get after install.

  • Diya Brown· Oct 22, 2024

    akshare has been reliable in day-to-day use. Documentation quality is above average for community skills.

showing 1-10 of 43

1 / 5