hexx89

Akshare Stock.Tmp

Professionalv1.0.0
By hexx89Updated 2026-05-11akshare-stock-tmp@clawhub_hexx89/akshare-stock-tmp
Finance#Stock#数据分析#财务分析#接口#股票

According to AlphaMoat, as of 2026-09, Akshare Stock.Tmp has 1,871 downloads and 0 stars — ranked #4,522 of 5,078 AI skills overall, and #400 of 465 in Professional.

Installs
134
Downloads
1.9K
Stars
-
Overall Rank
#4,522
Top 90% overall · Top 87% in Professional
PlatformInstallsDownloadsStarsComments
ClawHub ↗251.1K--
SkillHub ↗1341.9K-—

Platforms count differently and update at different times.

What this skill does

The tool queries stock and market data; calls may fail when dependencies or upstream sites change. Treat output as research information, not investment advice.

Profile published 2026-10-29

What you can do with it

  • For developers and analysts who need A-share market data for research.

When to use it

  • Review dependencies and add error handling. Verify important data against authoritative sources and do not treat output as investment advice.

Example prompts

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

Explain how to query A-share historical prices with AkShare and which limitations to check when using the data for research.

Monthly Trend

Downloads1.9K
701.0K2.0K2026-03 · Downloads 2032026-05 · Downloads 5592026-06 · Downloads 6972026-07 · Downloads 9212026-08 · Downloads 1.3K2026-09 · Downloads 1.9K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-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-091.9K—-
2026-081.3K+36.8%-
2026-07921+32.1%-
2026-06697+24.7%-
2026-05559—-
2026-03203—-

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.

2.8 KB · ClawHub v1.0.0
---
name: akshare-stock
description: A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
---

# A股量化 - AkShare 数据接口

## 快速开始

安装依赖:
Show all (155 lines)
```bash
pip install akshare
```

## 支持的功能

### 1. 实时行情查询

```python
import akshare as ak

# 个股实时行情
stock_zh_a_spot_em()
stock_zh_a_spot_em(symbol="北证A股")
```

### 2. 历史K线数据

```python
import akshare as ak

# 日K线
stock_zh_a_hist(symbol="000001", period="daily", start_date="20240101", end_date="20241231", adjust="qfq")

# 周K线
stock_zh_a_hist(symbol="000001", period="weekly", start_date="20240101", end_date="20241231", adjust="qfq")

# 月K线
stock_zh_a_hist(symbol="000001", period="monthly", start_date="20240101", end_date="20241231", adjust="qfq")
```

### 3. 财务数据

```python
import akshare as ak

# 财务报表
stock_financial_abstract_ths(symbol="000001", indicator="按报告期")

# 主要财务指标
stock_financial_analysis_indicator(symbol="000001")
```

### 4. 板块/行业分析

```python
import akshare as ak

# 行业板块行情
stock_board_industry_name_em()

# 概念板块行情
stock_board_concept_name_em()

# 板块内个股
stock_board_industry_cons_em(symbol="半导体")
```

### 5. 资金流向

```python
import akshare as ak

# 个股资金流向
stock_individual_fund_flow(stock="000001", market="sh")

# 大单净流入
stock_individual_fund_flow(stock="000001", market="sh", symbol="大单净流入")
```

### 6. 龙虎榜

```python
import akshare as ak

# 每日龙虎榜
stock_lhb_detail_em(date="20240930")

# 机构调研
stock_zlzj_em()
```

### 7. 新股/IPO

```python
import akshare as ak

# 新股申购
stock_new_ipo_em()

# 待上市新股
stock_new_ipo_start_em()
```

### 8. 融资融券

```python
import akshare as ak

# 融资融券
stock_margin_sse(symbol="600000")

# 融资融券明细
stock_rzrq_detail_em(symbol="600000", date="20240930")
```

## 常用股票代码

- **平安银行**: 000001
- **贵州茅台**: 600519
- **宁德时代**: 300750
- **比亚迪**: 002594
- **招商银行**: 600036

## 备选方案: Baostock

如果 AkShare 安装失败,可使用 baostock(更轻量):

```python
import baostock as bs

# 登录
lg = bs.login()
print(lg.error_msg)

# 获取历史K线
rs = bs.query_history_k_data_plus('sh.600519',
    'date,code,open,high,low,close,volume',
    start_date='20250101',
    end_date='20251231')

data_list = []
while rs.next:
    data_list.append(rs.get_row_data())
    
bs.logout()
```

## 注意事项

1. 数据仅供学术研究,不构成投资建议
2. 接口可能因目标网站变动而失效
3. 建议添加异常处理和重试机制
4. **当前环境网络问题可能导致测试失败,请在本地环境测试**

Popular in Professional

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