A

akshare

by @succ985v1.0.0
0.0(0)

提供AkShare库的指导,用于访问和获取中国金融市场数据,是一个免费开源的Python库,支持金融数据分析。

AKShareFinancial Data APIStock Market DataQuantitative FinancePythonGitHub
安装方式
npx skills add succ985/openclaw-akshare-skill --skill akshare
compare_arrows

Before / After 效果对比

1
使用前

获取中国金融市场数据通常需要付费接口或复杂的数据爬取,数据来源分散且格式不统一。这给金融数据分析带来了巨大障碍,耗费大量时间和精力进行数据清洗和整合。

使用后

AkShare库提供免费开源的Python接口,极大简化了中国金融市场数据的获取。它统一了数据来源和格式,让金融数据分析变得高效便捷,助力研究人员和开发者快速洞察市场。

description SKILL.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:

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

  • Data caching: AkShare doesn't cache data, implement your own caching if needed

  • Rate limiting: Be mindful of request frequency to avoid being blocked

  • Data format: Returns pandas DataFrame, can be easily processed

  • Error handling: Network errors may occur, implement retry logic

References

For complete API documentation and advanced usage, see:

Weekly Installs437Repositorysucc985/opencla…re-skillGitHub Stars4First SeenFeb 28, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled ongemini-cli435amp435github-copilot435codex435kimi-cli435opencode435

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月17日
对比案例1 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月17日
最后更新2026年3月17日