Skip to content
Agentmart
Submit a tool

akshare-stock

A股股票数据Skill - 提供实时行情、历史数据、板块分析、资金流向等 via AkShare/腾讯财经

Skill by aifinlab

IndexedApache-2.0★ 261
Write a review

Chalk Labs

Need help deploying akshare-stock?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aifinlab-akshare-stock

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

A股股票数据Skill - 提供实时行情、历史数据、板块分析、资金流向等 via AkShare/腾讯财经

Use cases: finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/akshare-stock

What's inside

Skill name
akshare-stock
Description
A股股票数据Skill - 提供实时行情、历史数据、板块分析、资金流向等 via AkShare/腾讯财经
License
Apache-2.0
Instructions
260 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (12)

  • SKILL.md
  • stock_alerts.py · scripts/
  • stock_capital.py · scripts/
  • stock_hist.py · scripts/
  • stock_lhb.py · scripts/
  • stock_list.py · scripts/
  • stock_quote.py · scripts/
  • stock_quote_tx.py · scripts/
  • stock_search.py · scripts/
  • stock_search_tx.py · scripts/
  • stock_sector.py · scripts/
  • skillnet_registry.json

SKILL.md (first lines)

# SKILL.md - akshare-stock

## 技能信息

| 属性 | 内容 |
|:---|:---|
| **名称** | akshare-stock |
| **版本** | 1.1.0 |
| **分类** | 股票数据 |
| **状态** | ✅ 已上线 |
| **维护者** | FinClaw Core Team |
| **最后更新** | 2026-03-19 |

## 功能描述

A股股票数据Skill,提供实时行情、历史数据、板块分析、资金流向、龙虎榜等全方位A股数据服务。优先使用腾讯财经API(稳定、快速),备用AkShare(东方财富数据源)。

## 触发意图

### 主要触发词
- "股票"、"股价"、"行情"、"多少钱"、"涨了"、"跌了"
- "走势"、"K线"、"分时"、"实时"
- "600519"、"茅台"、"宁德时代"
- "查一下" + 股票名称/代码

### Few-shot 示例

| 用户输入 | 识别意图 | 调用函数 |
|:---|:---|:---|
| 茅台今天多少钱? | stock_realtime | stock_quote_tx.py 600519 |
| 查一下宁德时代股价 | stock_realtime | stock_quote_tx.py 300750 |
| 半导体板块有哪些股票 | sector_analysis | stock_sector.py 半导体 |
| 今天资金流向如何 | capital_flow | stock_capital.py |
| 查询贵州茅台历史数据 | stock_history | stock_hist.py 600519 |

## 数据源配置

| 数据类型 | 主要来源 | 备用来源 | 认证要求 |
|:---|:---|:---|:---:|
| 实时行情 | 腾讯财经 | 新浪财经 | 无需 |
| 历史K线 | AkShare-东方财富 | Baostock | 无需 |
| 板块数据 | AkShare-东方财富 | - | 无需 |
| 资金流向 | AkShare-东方财富 | - | 无需 |
| 龙虎榜 | AkShare-东方财富 | - | 无需 |

## 功能列表

### 1. 实时行情查询
- **功能描述**: 获取A股实时行情数据
- **输入参数**: 股票代码(如 600519, 000001)
- **输出格式**: Markdown表格(价格、涨跌、成交量等)
- **数据源**: 腾讯财经 API
- **数据时效**: 实时(延迟<1秒)
- **使用示例**:
  ```bash
  python scripts/stock_quote_tx.py 600519
  ```

### 2. 股票搜索
- **功能描述**: 根据名称/拼音搜索股票代码
- **输入参数**: 股票名称关键词(如"茅台"、"银行")
- **输出格式**: 匹配股票列表
- **数据源**: 腾讯财经 API
- **数据时效**: 实时
- **使用示例**:
  ```bash
  python scripts/stock_search_tx.py 茅台
  ```

### 3. 板块分析
- **功能描述**: 查询特定板块/行业的成分股
- **输入参数**: 板块名称(如"半导体"、"银行"、"新能源")
- **输出格式**: 板块成分股列表
- **数据源**: AkShare-东方财富
- **数据时效**: T日盘后更新
- **使用示例**:
  ```bash
  python scripts/stock_sector.py 半导体
  ```

### 4. 资金流向
- **功能描述**: 查询个股或市场资金流向
- **输入参数**: 市场(sh/sz/all)、数量限制
- **输出格式**: 资金流入/流出排行
- **数据源**: AkShare-东方财富
- **数据时效**: 实时(盘中更新)
- **使用示例**:
  ```bash
  python scripts/stock_capital.py --market sh --limit 30
  ```

### 5. 龙虎榜数据
- **功能描述**: 查询每日龙虎榜(营业部买卖情况)
- **输入参数**: 日期(YYYYMMDD格式,默认今日)
- **输出格式**: 龙虎榜详情表
- **数据源**: AkShare-东方财富
- **数据时效**: T日盘后
- **使用示例**:
  ```bash
  python scripts/stock_lhb.py
  python scripts/stock_lhb.py 20250311
  ```

### 6. 历史K线数据
- **功能描述**: 获取个股历史价格数据
- **输入参数**: 股票代码、开始日期、结束日期、复权类型
- **输出格式**: CSV/Markdown表格
- **数据源**: AkShare-东方财富 / Baostock
- **数据时效**: 日频,盘后更新
- **使用示例**:
  ```bash
  python scripts/stock_hist.py 600519 20260101 20260319
  ```

## 脚本清单

| 脚本名 | 功能 | 入口点 |
|:---|:---|:---:|
| stock_quote_tx.py | 腾讯财经实时行情 | ✅ |

From aifinlab/FinClaw, Apache-2.0.

More from aifinlab/FinClaw

Signals

Stars
261
Forks
39
Open issues
2
Last commit (this folder)
Mar 26, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from aifinlab

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get akshare-stock running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying akshare-stock?

CallGet help
Cite this page

akshare-stock skill. Agent Mart. https://agentmart.dev/skills/aifinlab-akshare-stock (last updated 2026-10-24)