Fetches real-time A-share market data, financial metrics, insider trades, northbound capital, and macro indicators (LPR, CPI/PPI, PMI, social financing, M2) via AKShare. All sources free, no API key needed.
Ships in yuping322-finskills. 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; scripts run unread.
自包含的数据工具包,提供A股市场实时金融数据和定量计算。所有数据源免费,无需API密钥。
安装依赖(一次性):
pip install -r requirements.txt
所有脚本位于 scripts/ 目录。从技能根目录运行。
config/litellm_tools.json → scripts/akshare_tools.py)本工具包内置 config/litellm_tools.json(356 个接口定义),并提供统一的“工具运行器”脚本:
python scripts/akshare_tools.py list --contains fund_flowpython scripts/akshare_tools.py describe stock_zt_pool_empython scripts/akshare_tools.py stock_zh_a_spot_empython scripts/akshare_tools.py stock_individual_info_em --set symbol=000001python scripts/akshare_tools.py stock_zh_a_hist --args '{"symbol":"000001","period":"daily","start_date":"20250101","end_date":"20250201","adjust":"qfq"}'说明:
FINSKILLS_CACHE_DIR 可指定缓存目录);可用 --no-cache 关闭,--refresh 强制刷新。token/timeout 等参数在工具定义中可能被标记为必填但默认 None;运行器会尽量做兼容处理(缺省则填 None)。scripts/views_runner.py)Views 用于把多个底层工具(356 个接口)组合成更稳定、可复用的“数据视图”,供上层分析技能直接引用。
python scripts/views_runner.py listpython scripts/views_runner.py describe fund_flow_dashboardpython scripts/views_runner.py fund_flow_dashboardpython scripts/views_runner.py repurchase_dashboard、python scripts/views_runner.py block_deal_dashboardpython scripts/views_runner.py stock_zh_a_spot_empython scripts/views_runner.py dragon_tiger_daily --set date=20250211 --dry-run远程模式(推荐用于产品化/稳定取数):
FINSKILLS_VIEW_API_URL 或使用 --remote-url,list/describe/run 会直连远端 View API(只消费 {meta,data,warnings,errors},不做本地清洗/转换)。FINSKILLS_VIEW_API_URL=http://127.0.0.1:8808 python scripts/views_runner.py listpython scripts/views_runner.py --remote-url http://127.0.0.1:8808 repurchase_dashboard --set symbol=000001--dry-run 不可用(远端 API 默认不暴露 plan)。可选鉴权/超时:
FINSKILLS_VIEW_API_TOKEN(Bearer)或 FINSKILLS_VIEW_API_KEYFINSKILLS_VIEW_API_TIMEOUT(秒,默认 30)输出可靠性提示:
{meta, data, warnings, errors};请优先检查 errors 和 warnings 再做结论。meta.as_of 记录抓取时间;若命中缓存,会在 meta.cache 里看到缓存 age/ttl。meta.result 会尽量附带结果类型与规模(如 type/rows/columns);空结果会写入 warnings,避免“无数据=无事件”的误判。scripts/stock_data.py)通过 AKShare 获取A股基本面、行情、财务指标。
| 命令 | 用途 |
|---|---|
python scripts/stock_data.py 600519 | 基本信息(贵州茅台) |
python scripts/stock_data.py 600519 --metrics | 完整财务指标(估值、盈利、杠杆、增长) |
python scripts/stock_data.py 600519 --history | 历史OHLCV行情 |
python scripts/stock_data.py 600519 --financials | 利润表、资产负债表、现金流量表 |
python scripts/stock_data.py 600519 --insider | 董监高增减持数据 |
python scripts/stock_data.py --northbound | 北向资金流向(沪股通/深股通) |
python scripts/stock_data.py 600519 000858 --screen | 批量筛选 |
scripts/macro_data.py)通过 AKShare 获取中国宏观经济指标。
| 命令 | 用途 |
|---|---|
python scripts/macro_data.py --dashboard | 完整宏观仪表盘 |
python scripts/macro_data.py --rates | 利率数据(LPR、Shibor) |
python scripts/macro_data.py --inflation | CPI/PPI数据 |
python scripts/macro_data.py --pmi | PMI数据(制造业/非制造业) |
python scripts/macro_data.py --social-financing | 社会融资规模 + M2 |
python scripts/macro_data.py --cycle | 经济周期阶段判断 |
| 来源 | 数据内容 | API密钥 |
|---|---|---|
| AKShare | A股行情、财务数据、董监高交易、北向资金、宏观指标 | 无需 |
所有脚本以 JSON 输出到标准输出,便于解析。错误信息输出到标准错误。
可选:编辑 config/data_sources.yaml 自定义速率限制或添加付费数据源API密钥。
LICENSE.txt (opens in a new tab)config/data_sources.yaml (opens in a new tab)requirements.txt (opens in a new tab)scripts/akshare_tools.py (opens in a new tab)scripts/common/__init__.py (opens in a new tab)scripts/common/akshare_runner.py (opens in a new tab)scripts/common/cache.py (opens in a new tab)scripts/common/config.py (opens in a new tab)scripts/common/litellm_tools.py (opens in a new tab)scripts/common/utils.py (opens in a new tab)scripts/macro_data.py (opens in a new tab)scripts/stock_data.py (opens in a new tab)scripts/views/__init__.py (opens in a new tab)scripts/views/_helpers.py (opens in a new tab)scripts/views/ab_ah_premium_dashboard.py (opens in a new tab)scripts/views/block_deal_dashboard.py (opens in a new tab)scripts/views/cninfo_disclosure_relation_search.py (opens in a new tab)scripts/views/cninfo_disclosure_search.py (opens in a new tab)scripts/views/concept_board_detail.py (opens in a new tab)scripts/views/concept_board_snapshot.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
a-share, china-stocks, financial-data, akshare, stock-market, macro-economics
/yuping322-finskills:findata-toolkit-cnfrom yuping322-finskills
yuping322-finskills@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin yuping322-finskills107 skills in this plugin
/ab-ah-premium-monitor跟踪 AB 股比价与 A+H 溢价/折价,并结合流动性与事件因素给出风险提示。当用户询问AB股比价、A+H溢价、跨市场定价差或需要溢价监控时使用。/block-deal-monitor跟踪并解读A股大宗交易(折溢价、买卖方、金额、连续性),用于识别潜在建仓/派发、短期抛压与承接强弱,并输出可执行的跟踪清单与风控规则。当用户询问大宗交易、折价率、大额成交、机构接盘、或想用大宗交易做信号时使用。/bse-selection-analyzer扫描与分析北交所(BSE)标的,按流动性、成长性、行业景气与“专精特新”特征输出候选清单,并给出流动性与波动风险提示。当用户询问北交所精选、北交所选股、专精特新筛选、或需要北交所板块研究时使用。/buyback-monitorAnalyze share repurchases (authorization, pace, dilution vs buybacks) and capital return sustainability. Use when the user asks about buybacks, shareholder yield, or capital return analysis.Other plugins' skills for the same job