Install
openclaw skills install ashareUse 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.
openclaw skills install ashareUse this skill to query a fixed whitelist of AKShare market datasets through the bundled CLI.
YYYYMMDD before calling the script.references/datasets.md.exec:python "{baseDir}/scripts/query_akshare.py" <subcommand> [args...]
rows.python "{baseDir}/scripts/query_akshare.py" ....YYYYMMDD.akshare as an environment issue and relay the install command from the error payload.market-overview
stock-quote <symbol>
stock-history <symbol> [--start-date YYYYMMDD] [--end-date YYYYMMDD] [--period daily|weekly|monthly] [--adjust none|qfq|hfq] [--limit N]stock-profile <symbol>
index-quote <symbol>
index-history <symbol> [--start-date YYYYMMDD] [--end-date YYYYMMDD] [--period daily|weekly|monthly] [--limit N]fund-quote <symbol>
fund-history <symbol> [--indicator unit_nav|acc_nav|acc_return] [--period 1m|3m|6m|1y|3y|5y|ytd|all] [--limit N]macro-series <alias>
china_cpi, china_pmi, china_rmb.macro-calendar [--date YYYYMMDD] [--limit N]news-flash [--scope all|important] [--limit N]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
Every success response is a JSON object with:
okdatasetakshare_functionresolvedparamscolumnsrowsrow_counttruncatedas_ofEvery failure response is a JSON object with:
ok: falseerror.typeerror.messageerror.detailsError types are limited to:
missing_dependencyinvalid_argumentunsupported_queryambiguous_symbolruntime_error