/akshare-a-shares:akshare-a-sharesfrom akshare-a-shares
Queries Chinese A-share stock data (real-time quotes, historical K-lines, minute data, adjusted prices, shareholder counts, announcements) via local akshare source. Supports EastMoney and Sina APIs, outputs CSV/JSON.
Ships in akshare-a-shares. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
本Skill指导如何基于本地 akshare 源码目录的数据接口完成 A 股数据查询,并提供一个可直接运行的脚本以便快速拉取数据。
目录约定:本地 akshare 源位于 Recents/akshare(相对当前工作目录)。如不一致,请在执行脚本前修改脚本内 AK_PATH。
scripts/akshare_fetch.py 拉取数据,支持 CSV 或 JSON 输出。
references/examples.mdreferences/endpoints.md 的“意图→接口”映射与参数说明stock_feature.stock_hist_em.stock_zh_a_spot_em()stock_feature.stock_hist_em.stock_zh_a_hist(symbol, period, start_date, end_date, adjust)stock_feature.stock_hist_em.stock_zh_a_hist_min_em(symbol, start_date, end_date, period, adjust)stock_feature.stock_gdhs.stock_zh_a_gdhs(symbol);详情:stock_feature.stock_gdhs.stock_zh_a_gdhs_detail_em(symbol)stock_feature.stock_disclosure_cninfo.stock_zh_a_disclosure_report_cninfo(...)、stock_zh_a_disclosure_relation_cninfo(...)stock.stock_zh_a_sina.stock_zh_a_spot()、日线/复权 stock.stock_zh_a_sina.stock_zh_a_daily(...)、分钟线 stock.stock_zh_a_sina.stock_zh_a_minute(...)详细参数、示例与注意事项见 references/endpoints.md 与 references/examples.md。
脚本路径:scripts/akshare_fetch.py
python3 scripts/akshare_fetch.py spot --source em --format csvpython3 scripts/akshare_fetch.py hist --symbol 600519 --period daily --start 20200101 --end 20251231 --adjust qfq --format csvreferences/examples.md脚本特性:
Recents/akshare 加入 sys.path,直接导入本地 akshare 源--format json 输出JSONpython3、pandas、requests(Sina 接口还需 py_mini_racer)EM 接口通常使用纯数字代码:沪市以 6 开头(如 600519),深市以 0/3 开头(如 000001)Sina 接口部分函数使用带交易所前缀的代码(如 sh600519、sz000001)YYYYMMDD(日/周/月K);分钟分时使用 YYYY-MM-DD HH:MM:SSadjust 取值 { "": 不复权, "qfq": 前复权, "hfq": 后复权 }references/endpoints.md:接口清单、参数与返回字段概述references/examples.md:常见请求的可直接运行示例及脚本命令请按需加载参考文件,避免无关内容占用上下文。
akshare/__init__.py (opens in a new tab)akshare/air/__init__.py (opens in a new tab)akshare/air/air_hebei.py (opens in a new tab)akshare/air/air_zhenqi.py (opens in a new tab)akshare/air/cons.py (opens in a new tab)akshare/air/crypto.js (opens in a new tab)akshare/air/outcrypto.js (opens in a new tab)akshare/air/sunrise_tad.py (opens in a new tab)akshare/article/__init__.py (opens in a new tab)akshare/article/cons.py (opens in a new tab)akshare/article/epu_index.py (opens in a new tab)akshare/article/ff_factor.py (opens in a new tab)akshare/article/fred_md.py (opens in a new tab)akshare/article/risk_rv.py (opens in a new tab)akshare/bank/__init__.py (opens in a new tab)akshare/bank/bank_cbirc_2020.py (opens in a new tab)akshare/bank/cons.py (opens in a new tab)akshare/bond/__init__.py (opens in a new tab)akshare/bond/bond_buy_back_em.py (opens in a new tab)akshare/bond/bond_cb_sina.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub yrzhe/claude-skills --plugin akshare-a-sharesOther plugins' skills for the same job