Nick deep234

A股市场数据

专业领域v1.0.0
作者:Nick deep234更新于 2026-05-11ashare@clawhub_nickdeep1234/ashare
金融分析#Calendar#News#Stock

据 AlphaMoat 统计,截至 2026-09,A股市场数据 累计下载 3,165 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 3,605 位,在「专业领域」分类(465 个)中排名第 297 位。

累计安装
778
累计下载
3,165
星标
-
全站排名
#3,605
全站前 71% · 「专业领域」前 64%
平台累计安装累计下载星标评论
ClawHub ↗311,167--
SkillHub ↗7783,165-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

通过附带命令行脚本查询白名单内的 AKShare 市场数据集,覆盖 A 股、中国指数、开放式基金、宏观指标、宏观日历事件与财经快讯。调用前需把相对日期换算成绝对日期,并且只运行随包的查询脚本。

资料发布于 2026-10-27

可以用来做什么

  • 查某个宏观指标的历史序列。
  • 获取指数或基金的区间行情数据。

什么时候用

  • 问题能用固定数据集回答时。
  • 需要按日期区间取数、且口径要统一时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

帮我查这个宏观指标最近一年的数据。
取一下这个指数这段时间的行情。

月度数据趋势

累计下载3,165
1,0292,1763,3232026-03 · 累计下载 1,1872026-05 · 累计下载 1,8422026-06 · 累计下载 2,0832026-07 · 累计下载 2,3712026-08 · 累计下载 2,5642026-09 · 累计下载 3,16526-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,165—-
2026-082,564+8.1%-
2026-072,371+13.8%-
2026-062,083+13.1%-
2026-051,842—-
2026-031,187—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.1 KB · ClawHub v1.0.0
---
name: ashare
description: Use AKShare to answer Chinese market-data questions about A-shares, China indexes, open-end mutual funds, macro indicators, macro calendar events, and finance news flashes. Trigger on requests such as A股行情, 个股价格, 历史K线, 指数走势, 基金净值, 宏观数据, 财联社快讯, market overview, stock quote, fund NAV, macro calendar, or news flash. Prefer this skill when OpenClaw needs structured market data from AKShare instead of free-form web browsing.
homepage: https://akshare.akfamily.xyz/data/index.html
user-invocable: true
metadata: {"openclaw":{"requires":{"bins":["python"]}}}
---

# A股市场数据
展开全部(共 106 行)
Use this skill to query a fixed whitelist of AKShare market datasets through the bundled CLI.

## Workflow

1. Convert relative dates to absolute `YYYYMMDD` before calling the script.
2. Map the user's request to one of the supported subcommands in [`references/datasets.md`](references/datasets.md).
3. Run only the bundled script with OpenClaw `exec`:

```bash
python "{baseDir}/scripts/query_akshare.py" <subcommand> [args...]
```

4. Read the JSON envelope from stdout.
5. Reply in Chinese with a short summary plus the most relevant values from the returned `rows`.

## Hard Rules

- Use only `python "{baseDir}/scripts/query_akshare.py" ...`.
- Do not paste the user's raw request into shell pipelines.
- Do not generate ad-hoc Python snippets to call AKShare directly.
- Do not guess when a symbol match is ambiguous; surface the returned candidates.
- Keep dates in `YYYYMMDD`.
- Treat missing `akshare` as an environment issue and relay the install command from the error payload.

## Supported Commands

- `market-overview`
  - Return A-share market breadth, major indices, top 10 gainers, and top 10 losers.
- `stock-quote <symbol>`
  - Real-time A-share quote by code or exact name.
- `stock-history <symbol> [--start-date YYYYMMDD] [--end-date YYYYMMDD] [--period daily|weekly|monthly] [--adjust none|qfq|hfq] [--limit N]`
- `stock-profile <symbol>`
  - Company and security profile from Eastmoney.
- `index-quote <symbol>`
  - Real-time China index quote by code or exact name.
- `index-history <symbol> [--start-date YYYYMMDD] [--end-date YYYYMMDD] [--period daily|weekly|monthly] [--limit N]`
- `fund-quote <symbol>`
  - Open-end mutual fund daily NAV snapshot by code or exact name.
- `fund-history <symbol> [--indicator unit_nav|acc_nav|acc_return] [--period 1m|3m|6m|1y|3y|5y|ytd|all] [--limit N]`
- `macro-series <alias>`
  - Supported aliases: `china_cpi`, `china_pmi`, `china_rmb`.
- `macro-calendar [--date YYYYMMDD] [--limit N]`
- `news-flash [--scope all|important] [--limit N]`

## Command Examples

```bash
python "{baseDir}/scripts/query_akshare.py" market-overview
python "{baseDir}/scripts/query_akshare.py" stock-quote 000001
python "{baseDir}/scripts/query_akshare.py" stock-history 600519 --start-date 20260101 --end-date 20260313
python "{baseDir}/scripts/query_akshare.py" index-history 000300 --limit 60
python "{baseDir}/scripts/query_akshare.py" fund-history 000001 --indicator unit_nav --limit 60
python "{baseDir}/scripts/query_akshare.py" macro-series china_pmi
python "{baseDir}/scripts/query_akshare.py" macro-calendar --date 20260313
python "{baseDir}/scripts/query_akshare.py" news-flash --limit 10
```

## Output Contract

Every success response is a JSON object with:

- `ok`
- `dataset`
- `akshare_function`
- `resolved`
- `params`
- `columns`
- `rows`
- `row_count`
- `truncated`
- `as_of`

Every failure response is a JSON object with:

- `ok: false`
- `error.type`
- `error.message`
- optional `error.details`

Error types are limited to:

- `missing_dependency`
- `invalid_argument`
- `unsupported_query`
- `ambiguous_symbol`
- `runtime_error`

## Summary Style

- Lead with the direct answer in Chinese.
- Mention the symbol or dataset that was resolved.
- For quotes, include latest price and change fields when present.
- For history, describe the date range covered by the returned rows.
- For market overview, mention breadth and the main index moves.
- For macro/news results, surface the latest or most important rows instead of dumping the whole payload.

「专业领域」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。