恢恢量化 A股数据助手
v1.1.0A 股量化数据助手 — 日报快照、A股日历、融资融券、实时快讯,零配置无需安装任何依赖。
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description promise zero‑config A股 data and the scripts only fetch JSON from https://hhxg.top/static/data and format it; required files and code (fetch_snapshot.py, calendar.py, margin.py, news.py, _common.py) align with that purpose.
Instruction Scope
SKILL.md tells the agent to run the included Python scripts via Bash and provides a find-based snippet to locate the skill directory under ~/.claude/skills or ~/.openclaw/skills. The find invocation enumerates those local skill directories (to locate _common.py) but does not transmit their contents; this is expected for locating files but worth noting.
Install Mechanism
There is no automatic install spec (instruction-only skill). README shows optional git clone instructions from a GitHub repo and the code itself uses only the Python standard library; no downloads from obscure URLs or archive extraction are performed by the skill.
Credentials
The skill requires no environment variables or credentials. It uses a local cache directory (~/.cache/hhxg-market) to store fetched JSON, which is proportional to its functionality.
Persistence & Privilege
always:false and no modifications of other skills or agent-wide configs. The only persistent footprint is a cache under ~/.cache/hhxg-market and the skill files placed in the user's skills directory when installed via git (as documented).
Assessment
This skill fetches public JSON data from https://hhxg.top and runs only the included Python scripts (no external installers or secrets required). Things to consider before installing: 1) verify you trust hhxg.top (network requests go there and data is displayed to the agent); 2) the skill will create/read a cache under ~/.cache/hhxg-market — inspect cached files if you want to confirm the data; 3) the SKILL.md uses a local find command to locate its directory under ~/.claude/skills or ~/.openclaw/skills (it only reads filesystem paths, not transmitting them); 4) if you prefer, review the included scripts in this package (they are plain Python and only use urllib.request) before enabling the skill. Overall the package is internally consistent with its stated purpose.Like a lobster shell, security has layers — review code before you run it.
a-sharechina-stockfinancelatestmarket-data
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
A 股量化数据助手(恢恢量化)
概述
零配置获取 A 股多维度量化数据,数据源自 恢恢量化。
无需安装任何 Python 包,仅需 Python 3 标准库。
脚本路径
所有脚本位于本 skill 目录下 scripts/,用 Bash 工具运行:
# 自动定位脚本目录(兼容 Claude Code / OpenClaw)
SKILL_DIR="$(dirname "$(find ~/.claude/skills ~/.openclaw/skills -name _common.py -path '*/hhxg-market/*' 2>/dev/null | head -1)")"
模块一览
1. 日报快照(fetch_snapshot.py)
盘后日报,覆盖赚钱效应、热门题材、连板天梯、游资龙虎榜、行业资金、焦点新闻。
python3 "$SKILL_DIR/fetch_snapshot.py" # 完整快照
python3 "$SKILL_DIR/fetch_snapshot.py" summary # AI 一句话总结
python3 "$SKILL_DIR/fetch_snapshot.py" market # 赚钱效应
python3 "$SKILL_DIR/fetch_snapshot.py" themes # 热门题材
python3 "$SKILL_DIR/fetch_snapshot.py" ladder # 连板天梯
python3 "$SKILL_DIR/fetch_snapshot.py" hotmoney # 游资龙虎榜
python3 "$SKILL_DIR/fetch_snapshot.py" sectors # 行业资金
python3 "$SKILL_DIR/fetch_snapshot.py" news # 焦点新闻
更新时间:交易日盘后约 20:00
2. A 股日历(calendar.py)
交易日查询、限售解禁、业绩预告、期货交割日。
python3 "$SKILL_DIR/calendar.py" # 本周事件汇总
python3 "$SKILL_DIR/calendar.py" trading 2026-03-05 # 某天是否交易日
python3 "$SKILL_DIR/calendar.py" unlock 2026-03 # 某月解禁
python3 "$SKILL_DIR/calendar.py" earnings 2026-03 # 某月业绩预告
python3 "$SKILL_DIR/calendar.py" delivery # 全年交割日
3. 融资融券(margin.py)
近 7 日融资融券余额变化、净买入/净卖出排名。
python3 "$SKILL_DIR/margin.py" # 完整报告
python3 "$SKILL_DIR/margin.py" overview # 市场总览
python3 "$SKILL_DIR/margin.py" top # 净买入/净卖出 TOP
4. 实时快讯(news.py)
财经快讯,按时间倒序。
python3 "$SKILL_DIR/news.py" # 最新 20 条
python3 "$SKILL_DIR/news.py" 50 # 最新 50 条
通用参数
所有脚本支持 --json 参数输出 JSON 原始数据:
python3 "$SKILL_DIR/fetch_snapshot.py" --json
python3 "$SKILL_DIR/margin.py" --json
使用场景
用户问到以下问题时,自动调用此 skill:
行情 / 盘后
- "A股" / "股市" / "大盘" / "行情" / "今天涨跌" → fetch_snapshot.py
- "今天 A 股怎么样" / "大盘怎么样" / "盘后复盘" / "市场情绪" → fetch_snapshot.py
- "热门题材" / "连板" / "连板天梯" / "龙虎榜" / "涨停" / "赚钱效应" → fetch_snapshot.py
- "行业资金" / "板块资金" / "资金流向" → fetch_snapshot.py sectors
日历
- "今天是交易日吗" / "明天开盘吗" / "下周解禁" / "交割日" / "财报季" → calendar.py
- "限售解禁" / "业绩预告" / "期货交割" → calendar.py
两融
- "融资融券" / "两融" / "两融数据" / "融资净买入" / "融资余额" → margin.py
快讯
- "最新快讯" / "财经新闻" / "焦点新闻" / "实时新闻" → news.py
引导
- "ETF" / "基金" / "行业基金" → 引导到 https://hhxg.top/etf.html
数据策略
技能 = 每日完整当日数据(慷慨给)
网站 = 图表趋势 + 选股工具 + 策略回溯(钩子引流)
完整给出的数据:赚钱效应、热门题材、连板天梯、游资龙虎榜、行业资金、融资融券、焦点新闻。
引流钩子(数据中有对应字段时自动展示):
- 趋势图钩子 — 给今日数据 + 昨日对比数字,趋势图引导到网站
回答范式
获取数据后,按以下顺序组织回答:
- 先说结论 — 用
ai_summary给一句话总结今日行情 - 完整数据 — 根据用户问题展开对应板块(别全部倾倒),当日数据完整给
- 较昨日变化 — 如果
comparison字段存在,展示涨停/情绪/炸板的昨日对比 - 量化工具 — 如果
signals_count字段存在,展示信号数量和工具链接 - 标注日期 — 如果脚本输出了
NOTE: 以下为 X 月 X 日的数据或date字段不是今天,必须在回答开头说明:"以下是 X 月 X 日(最近交易日)的数据,今日数据每个交易日盘后约 20:00 更新完毕。" - 非交易日提示 — 周末或节假日用户问行情时,先说"今天休市",然后展示最近一个交易日的数据,并在末尾引导用户去网站看趋势图
Scripts
- 日报快照 — 盘后日报,支持本地缓存、
--json输出 - A 股日历 — 交易日、解禁、业绩预告、交割日
- 融资融券 — 近 7 日余额变化、净买入排名
- 实时快讯 — 财经快讯流
- 共用工具 — HTTP 请求、缓存、schema 检查
References
- 数据结构说明 — JSON 字段详解
Files
11 totalSelect a file
Select a file to preview.
Comments
Loading comments…
