Xpersona
A

akshare-stock

CLAWHUB · Unverified

A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。 Skill: akshare-stock Owner: sunshine-del-ux Summary: A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-03T14:53:45.855Z | auto Initial release of the akshare-stock skill. - 提供基于 AkShare 获取A股实时行情、历史K线、财务数据、板块分析等功能 - 支持资金流向、龙虎榜、新股申购、融资融券等查询接口 - 附带常用A股股票代码参考 - 提供 Baostock 方案作为备用选项 - 适用于A股量化分析的快速数据接口调用 Archive index: Archive v1.0.0: 4 files, 4306 byt

62
Rank
84
Safety
13k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 12.6K downloads reported by the source. Last updated 11/16/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17af0k3e50jf56dt1y159vvnn885pyh:new-akshare-stock
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sunshine-del-ux-new-akshare-stock-re-stock-2/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

5,199 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

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

# A股量化 - AkShare 数据接口

## 快速开始

安装依赖:
```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. **当前环境网络问题可能导致测试失败,请在本地环境测试**

_meta.json

{
  "ownerId": "kn7cv6afang2nh65cp9nasa5f9823tqc",
  "slug": "akshare-stock",
  "version": "1.0.1",
  "publishedAt": 1772461532238
}

skill-card.md

## Description:

A-share quantitative data analysis skill that helps agents use AkShare to retrieve market quotes, historical K-line data, financial data, sector information, and related stock research data.

This skill is for research and development only.

## Publisher:

[sunshine-del-ux](https://clawhub.ai/user/sunshine-del-ux)

### License/Terms of Use:


## Use Case:

External developers and analysts use this skill to ask an agent for AkShare-based A-share quotes, historical prices, financial indicators, sector data, fund flows, IPO data, and related research workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Financial market data may be delayed, unavailable, inaccurate, or unsuitable for investment decisions.

Mitigation: Treat results as research data, verify important outputs against authoritative financial sources, and do not rely on the skill as investment advice.

Risk: AkShare and upstream financial data websites can change, causing package, network, or interface failures.

Mitigation: Install dependencies in a dedicated virtual environment, pin and review AkShare before use, and add exception handling and retry logic around data calls.

Risk: Some documented features or helper script paths may require fixes before they work reliably.

Mitigation: Review and test commands in a local environment before using the skill in repeatable workflows.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/sunshine-del-ux/skills/new-akshare-stock)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown with Python and shell code blocks; CLI examples can return JSON.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May require network access to financial data sources; results are research data and not investment advice.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to akshare-stock and adjacent AI workflows.