akshare

Chinese financial data access using AkShare library. Fetch real-time and historical data for A-shares, Hong Kong stocks, US stocks, futures, funds, and macroeconomic indicators. Use when user requests Chinese market data, stock prices, market analysis, or financial information from Chinese exchanges. Supports stock quotes, historical data, futures market data, fund information, macroeconomic indicators, and real-time market updates.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "akshare" with this command: npx skills add succ985/openclaw-akshare-skill/succ985-openclaw-akshare-skill-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:

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:

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Private Fund Portfolio Analysis

私募基金持仓结构分析脚本构建方法。支持市场中性(期货空头对冲)和指数增强(持仓 vs 对标指数超配/低配)两种产品类型。当需要从私募基金估值表(XLS/XLSX)解析持仓,分析行业分布/市值分布/指数成分/期货对冲,并生成可视化报告时触发。也用于:生成持仓分析脚本、重构脚本、添加新数据源、修复脚本Bug、生成分析报告。

Registry SourceRecently Updated
1250Profile unavailable
Research

China Stock Quant

A-share quantitative analysis toolkit. Use when user wants to analyze Chinese stocks, backtest trading strategies, calculate technical indicators (MACD/KDJ/R...

Registry SourceRecently Updated
2020Profile unavailable
General

A股分析技能包装器

A股分析技能包装器,基于akshare数据源。支持实时行情、个股分析、板块轮动、资金流向等A股分析功能。使用自然语言查询A股市场数据。

Registry SourceRecently Updated
3040Profile unavailable
Coding

AKShare股票分析

专业股票分析技能整合 akshare 数据 + 技术指标 + 板块轮动 + 持仓诊断。通过 AKShare CLI 调用A股/基金/期货实时行情数据,计算MACD/RSI/MA等技术指标,分析板块轮动趋势,诊断持仓风险与收益,输出结构化JSON结果。适用场景:股票行情查询、技术指标分析、持仓组合诊断、板块热点追踪...

Registry SourceRecently Updated
2330Profile unavailable