anyJohn

akshare

Professionalv0.1.1
By anyJohnUpdated 2026-08-272 versions · latest released 2026-08-27akshare-zh@clawhub_anyjohn/akshare-zh
Finance

According to AlphaMoat, as of 2026-09, akshare has 3,047 downloads and 1 stars — ranked #3,695 of 5,078 AI skills overall, and #311 of 465 in Professional.

Installs
231
Downloads
3.0K
Stars
1
Overall Rank
#3,695
Top 73% overall · Top 67% in Professional
PlatformInstallsDownloadsStarsComments
ClawHub ↗572.1K1-
SkillHub ↗2313.0K1—

Platforms count differently and update at different times.

What this skill does

Use AKShare to retrieve public financial data for stocks, funds, bonds, futures, foreign exchange, indexes, crypto assets, and macroeconomic indicators, including fundamentals and current or historical market data. The source limits use to academic research; data may be delayed, incomplete, or incorrect, so cross-check independent sources and do not treat a single response as investment advice. The source guide limits its use to academic research. Data may be delayed, incomplete, or incorrect; cross-check it against independent sources and do not rely on a single endpoint for investment decisions.

Profile published 2026-10-27

What you can do with it

  • Retrieve financial-market and macroeconomic data through Python interfaces
  • Research historical and current data for stocks, funds, or foreign exchange

When to use it

  • When gathering Chinese financial data from public sources
  • When checking interface changes or validating data quality across sources

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Use AKShare to retrieve relevant market data and describe its sources and possible delays.

Monthly Trend

Downloads3.0K
6001.9K3.2K2026-03 · Downloads 7812026-05 · Downloads 1.4K2026-06 · Downloads 1.6K2026-07 · Downloads 1.9K2026-08 · Downloads 2.1K2026-09 · Downloads 3.0K26-0326-09
Stars1
1222026-03 · Stars 12026-05 · Stars 12026-06 · Stars 22026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.0K—1
2026-082.1K+15.1%1
2026-071.9K+17.4%1
2026-061.6K+15.4%2
2026-051.4K—1
2026-03781—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.9 KB · ClawHub v0.1.1
---
name: akshare
description: "Get Chinese financial data via AKShare. Trigger: stock data, A-share, fund, bond, futures, financial data, 股票数据, 基金, 债券, 期货, 财经数据, akshare."
---

# AKShare — 中国财经数据接口库

获取 A 股、港股、美股、期货、期权、基金、外汇、债券、指数、加密货币等金融产品的基本面数据、实时和历史行情数据。数据来源于公开财经网站(东方财富、新浪财经、上交所、深交所等),仅用于学术研究。

## 安装
Show all (154 lines)

```bash
pip install akshare pandas
```

验证安装:

```bash
python -c "import akshare; print(akshare.__version__)"
```

建议使用 Python 3.12+。接口经常更新,保持最新版本。

## 名称标注

- 东方财富: 简称东财

## 常用接口

### 股票行情

```python
import akshare as ak

# A 股实时行情(东财)
ak.stock_zh_a_spot_em()

# 港股实时行情
ak.stock_hk_spot_em()

# 美股实时行情
ak.stock_us_spot()

# A 股 K 线数据(日/周/月)
ak.stock_zh_a_hist(symbol="000001", period="daily",
    start_date="20250101", end_date="20251231", adjust="qfq")
```

### 期货数据

```python
# 中金所每日交易数据
ak.get_cffex_daily()
# 郑商所每日交易数据
ak.get_czce_daily()
# 大商所每日交易数据
ak.get_dce_daily()
# 广期所每日交易数据
ak.get_gfex_daily()
# 上海国际能源交易中心每日交易数据
ak.get_ine_daily()
# 四大交易所前 5/10/15/20 会员持仓排名
ak.get_rank_sum()
```

### 基金数据

```python
# 开放式基金实时行情(东财)
ak.fund_open_fund_daily_em()
# ETF 基金实时行情
ak.fund_etf_spot_em()
# 基金历史净值
ak.fund_etf_hist_em(symbol="510300", period="daily",
    start_date="20250101", end_date="20251231", adjust="qfq")
```

### 债券数据

```python
# 中国国债收益率(新浪)
ak.bond_gb_zh_sina()
# 美国国债收益率(新浪)
ak.bond_gb_us_sina()
```

### 外汇数据

```python
# 外汇实时行情
ak.fx_spot_quote()
# 外汇历史数据
ak.fx_hist_data(symbol="USDCNY")
```

### 指数数据

```python
# 中国股票指数
ak.index_zh_a_hist(symbol="000001", period="daily",
    start_date="20250101", end_date="20251231")
# 全球指数
ak.index_global_hist(symbol="NDX")
```

### 宏观经济

```python
# 中国宏观经济数据
ak.macro_china_gdp()
# 中国 CPI
ak.macro_china_cpi()
# 中国 PMI
ak.macro_china_pmi()
```

## 完整接口列表

AKShare 有数百个接口,涵盖:

- 股票(A 股/港股/美股/台股)
- 期货(中金所/郑商所/大商所/广期所/新交所)
- 期权(50ETF/300ETF/商品期权)
- 基金(开放/封闭/ETF/LOF/货基)
- 债券(国债/企业债/可转债/美债)
- 外汇(人民币/主要货币对)
- 指数(国内/全球)
- 加密货币
- 宏观经济(GDP/CPI/PMI/社融等)

完整接口列表参见 [references/api-list.md](references/api-list.md) 或 [AKShare 数据接口一览表](https://akshare.akfamily.xyz/tutorial.html)。

## 注意事项

1. **数据来源**: 数据来源于公开财经网站,仅用于学术研究
2. **商业风险**: 投资有风险,决策需谨慎
3. **更新频率**: 实时数据可能有延迟
4. **数据验证**: 应多数据源交叉验证,单一数据源的数据不可信
5. **时效性**: 仔细校验时间,错误的数据导致错误的决策

## 问题定位

- 接口报错或未找到 → 查看 [接口更新一览表](https://akshare.akfamily.xyz/changelog.html),接口可能已更名
- 数据为空 → 检查日期参数格式(YYYYMMDD)
- 网络超时 → 重试或检查网络代理

## 参考文档

- [AKShare 文档](https://akshare.akfamily.xyz/)
- [AKShare GitHub](https://github.com/akfamily/akshare)
- [安装指导](https://akshare.akfamily.xyz/installation.html)
- [接口更新一览表](https://akshare.akfamily.xyz/changelog.html)
- [数据接口一览表](https://akshare.akfamily.xyz/tutorial.html)

Popular in Professional

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.