據 AlphaMoat 統計,截至 2026-09,A股市場資料 累計下載 3,165 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 3,605 位,在「專業領域」分類(465 個)中排名第 297 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 31 | 1167 | - | - |
| SkillHub ↗ | 778 | 3165 | - | — |
各平台的計數口徑不同,統計時間不一致。
透過附帶命令列指令碼查詢白名單內的 AKShare 市場資料集,覆蓋 A 股、中國指數、開放式基金、宏觀指標、宏觀日曆事件與財經快訊。呼叫前需把相對日期換算成絕對日期,並且只執行隨包的查詢指令碼。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 3165 | — | - |
| 2026-08 | 2564 | +8.1% | - |
| 2026-07 | 2371 | +13.8% | - |
| 2026-06 | 2083 | +13.1% | - |
| 2026-05 | 1842 | — | - |
| 2026-03 | 1187 | — | - |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
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股市场数据
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.
基於 AkShare 庫取 A 股行情、財務與板塊資料的資料介面技能。
用自然語言查詢東方財富的金融資料,結果落成 Excel 與 Markdown 表格。
協助整理中國專利相關材料、檢索問題和技術說明草稿。
金融資料查詢技能:基於 westock 命令列工具查詢市場結構化資料。
以 Yahoo Finance 資料取報價與基本面,並生成帶技術指標圖表的本地行情分析技能。
按價值投資框架做 A 股與港股估值分析的技能。
查詢 A 股行情、分析分時成交量並管理持倉的指令碼。
盯住自選股的行情與技術指標,觸發條件時按級別推送預警訊息。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。