ttbb

A股量化 AkShare

Professionalv1.0.1
By ttbbUpdated 2026-05-112 versions · latest released 2026-03-02akshare-stock@clawhub_mbpz/akshare-stock
Finance#Stock#数据分析#财务分析#接口#股票

According to AlphaMoat, as of 2026-10, A股量化 AkShare has 157,173 downloads and 260 stars — ranked by downloads #160 among 10,914 AI skills in this ranking, and #13 of 1,228 in Professional.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
157.2K
Stars
260
Overall download rank
#160
Top 2% overall · Top 2% in Professional
PlatformDownloadsStarsComments
ClawHub ↗32.4K102-
SkillHub ↗157.2K260—

Platforms count differently and update at different times.

What this skill does

The body starts with pip install akshare and then lists callable interfaces by job: stock_zh_a_spot_em for real-time quotes, stock_zh_a_hist for daily, weekly, or monthly K-line history with forward adjustment, stock_financial_abstract_ths for financial statement summaries, plus functions for industry and concept boards, fund flow, the daily top-list, new listings, and margin trading. If AkShare cannot be installed, the body offers the lighter baostock as a fallback: call bs.login() first, then query K-line history. The closing notes say the data is for academic research only, is not investment advice, and that interfaces may break when the upstream site changes.

Profile published 2026-10-26

What you can do with it

  • Pull K-line history and adjusted prices for an A-share stock
  • List the constituents of an industry or concept board

When to use it

  • A-share quote or financial raw data is needed for analysis
  • Stock screening criteria must become a repeatable fetch script

Example prompts

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

Use stock_zh_a_hist to pull recent forward-adjusted daily bars for a stock.
Get the constituent list of the semiconductor industry, then pull quote data for them.

Monthly Trend

Downloads157.2K
22.4K94.8K167.2K2026-03 · Downloads 32.4K2026-05 · Downloads 56.4K2026-06 · Downloads 64.1K2026-07 · Downloads 69.5K2026-08 · Downloads 82.2K2026-09 · Downloads 94.9K2026-10 · Downloads 157.2K26-0326-0926-10
Stars260
471622762026-03 · Stars 632026-05 · Stars 1402026-06 · Stars 1992026-07 · Stars 2362026-08 · Stars 2512026-09 · Stars 2552026-10 · Stars 26026-0326-0926-10

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. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-10157.2K—260
2026-0994.9K—255
2026-0882.2K+18.2%251
2026-0769.5K+8.6%236
2026-0664.1K+13.6%199
2026-0556.4K—140
2026-0332.4K—63

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.1
---
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

AIGC过程存证服务Professional

AIGC创作过程自动存证技能。自动识别创作平台与生成工具,将创作过程记录存证并盖有公安备案电子印章,具备可信时间戳,可以在全国电子印章互认平台核验。

↓ 3.9M★ 7u_c2c77b5f
防诈专家Professional

反电信网络诈骗(反诈)专家技能。当用户描述一个疑似诈骗的场景、短信、电话、链接、聊天记录、App、投资平台、招聘信息或转账要求,并询问「这是不是诈骗」「要不要转钱」「怎么止损」「钱还能不能追回来」,或需要识别诈骗话术、拆解骗局结构、生成报案材料与取证清单时使用。同时在对话中主动嗅探「转账、验证码、屏幕共享、安全账户、保证金、刷单、稳赚、百万保障、跑分」等风险词并插入预警,即使对方并未询问反诈。适用场景还包括:家属求助劝阻疑似被骗的亲人、企业/银行/支付机构/互联网平台做涉诈账户识别与交易监测规则、涉诈资金链(跑分、卡四件套、GOIP)分析、反诈合规与员工培训、反诈实战演练。

↓ 1.7M★ 4user_e9185b15
全国电子印章互认平台Professional

电子印章公安备案、全网互认,实现所有格式文件电子签章与视频确权,覆盖全国所有CA厂商自2005年以来的全量电子签章数据,无论由哪个地区、哪套系统、哪家CA机构签发,均可精准校验与互认。

↓ 1.4M★ 8u_c2c77b5f
baozheng-skillsProfessional

包拯.Skills你身边的专家律师团 — 专业法律咨询 + 要素式/通用起诉状起草 + 刑事专项材料辅助 + 法条分析与法规检索。flk.npc.gov.cn API实时法条优先,不可用时AI知识库降级兜底,**法条来源按四档标注可核验(已核验-flk API / 已核验-单源 / 已引-离线库 / 未核验-模型生成),交付末尾附法条/事实/金额/程序分项置信度**;以22类法律领域覆盖矩阵约束路由边界;支持35个起诉状模板、5类刑事专项材料辅助;内置Logic Doctor逻辑自检、诉讼时效追踪及10类异常容错处理(含连续失败熔断);渐进式意图收敛协议(3轮状态机);混合意图自动任务拆解(按依赖排序→合并→顺序执行);含反模式清单与危机干预出口(自杀/家暴/未成年人侵害先于一切法律分析)。非标准案由自动使用通用模板。

↓ 526.8K★ 2user_814dbe54
律师助手Professional

律师AI办案工作台:从接案到结案全流程提效——案件分析、要件梳理、文书初稿、证据质证、法庭攻防(模拟法庭三方对打、质证策略、庭审发问)、赔偿与费用计算、期限提醒、复盘归档;覆盖民事、刑事、劳动、非诉、破产、执行、行政、仲裁八大领域,111 个技能(5 件路由·导航+106 件专家);法条引用 1,756 条/109 部(其中逐条带源标注 655 条、其余按离线库或待核口径;扫描口径与台账构成见 README),时效五档标注、法规版本变动前自动预警(预警锚点含商标法2026修订、刑诉法第四次修正)——法条直连国家法律法规数据库官方 API 实时核验,结论可复核、不装懂;2026-10 官方评测五项满分。不用记命令或技能名,直接说人话:欠钱不还、被车撞、被辞退、离婚分财产、合同违约。

↓ 506.9K★ 77user_cd0fcd93
包拯.SKILLProfessional

包拯.Skills你身边的专家律师团 — 专业法律咨询 + 要素式/通用起诉状起草 + 刑事专项材料辅助 + 法条分析与法规检索。flk.npc.gov.cn API实时法条优先,不可用时AI知识库降级兜底,**法条来源按四档标注可核验(已核验-flk API / 已核验-单源 / 已引-离线库 / 未核验-模型生成),交付末尾附法条/事实/金额/程序分项置信度**;以22类法律领域覆盖矩阵约束路由边界;支持35个起诉状模板、5类刑事专项材料辅助;内置Logic Doctor逻辑自检、诉讼时效追踪及10类异常容错处理(含连续失败熔断);渐进式意图收敛协议(3轮状态机);混合意图自动任务拆解(按依赖排序→合并→顺序执行);含反模式清单与危机干预出口(自杀/家暴/未成年人侵害先于一切法律分析)。非标准案由自动使用通用模板。

↓ 424.0K★ 41user_741dc82b
专利初稿助手Professional

当用户上传交底材料、研发报告、技术方案文档,并要求撰写专利、撰写初稿,或请专利代理师视角输出可申请的专利文件时触发。也涵盖如下说法:'帮我把这份交底写成专利''生成专利文件''生成初稿''专利撰写'等,无论是否明确说'生成专利文件'。

↓ 368.6K★ 48user_9c63fdb4
露禾论文写作助手(免费版pro)Professional

露禾论文写作助手(免费版):一句话生成引用可溯源、不编造的专业学术论文,按国标 GB/T 7714 插入真实文献引用,中英文 3000/5000/8000 字,一键导出 Word。说「写论文 / 帮我写论文」即可使用。

↓ 349.5K★ 18u_a3c224a2

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.