Ming-H

Hithink Moneyflow — Development skill for Claude Code

Development community

当天 A 股板块/个股资金流向 skill — 行业/概念 流入流出榜、大小单分解、个股主力资金(数据来源:同花顺问财,经 hithink-market-query).

How to install Hithink Moneyflow

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Ming-H/hithink-moneyflow and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Hithink Moneyflow does

当天 A 股板块/个股资金流向 skill — 行业/概念 流入流出榜、大小单分解、个股主力资金(数据来源:同花顺问财,经 hithink-market-query).

Alternatives in Development

  • Notebooklm Skill — Use this skill to enable Claude Code to communicate directly with your Google NotebookLM notebooks 5.9k ★
  • Cq — An open standard for shared agent learning 1.3k ★
  • Crypto Market Rank — Query crypto market rankings including trending tokens, smart money inflows, meme rankings, and top trader PnL 483 ★

README

hithink-moneyflow

当天 A 股板块 / 个股资金流向 skill:行业 / 概念 流入流出榜、特大单 / 大单 / 小单 分解、个股主力资金,一条命令出表格或图表。数据来源:**同花顺问财**(经 [`hithink-market-query`](https://www.iwencai.com/skillhub))。

依赖

  1. 环境变量 IWENCAI_API_KEY
  2. 已安装 hithink-market-query skill

用法

python3 scripts/flow.py --view  [--top N] [--sector NAME] [--format table|html|json] [--out DIR]

6 个 view:`industry-inflow` / `industry-outflow` / `concept-inflow` / `concept-outflow` / `orders` / `stock`。

# 行业板块主力净流入 Top 15
python3 scripts/flow.py --view industry-inflow --top 15

# 大小单分解 → 自包含 HTML 发散条形图
python3 scripts/flow.py --view orders --format html

# 半导体板块主力净流入个股 → HTML 写到 ./charts
python3 scripts/flow.py --view stock --sector 半导体 --format html --out ./charts

详细 view / 字段 / 排序 / 常见坑见 [`SKILL.md`](SKILL.md)。

安装(Claude Code)

源码即本仓库。软链到 Claude Code skills 目录即装即用(热加载,改了不用重启):

ln -s "$PWD" ~/.claude/skills/hithink-moneyflow

验证:在 Claude Code 里 `Skill(skill="hithink-moneyflow")` 能加载 SKILL.md。

测试

python3 tests/test_parser.py   # 离线:用 tests/fixtures 真实采样回归解析/排序逻辑

设计要点

  • 不重复造轮子:HTTP / 鉴权 / X-Claw-* header / 分页 / 重试全部复用 hithink-market-query 的 cli,本 skill 只做 query 固化 + 字段解析 + 排序 + 渲染。
  • query 措辞决定问财的返回排序与口径,故固化在 VIEWS 字典,不让用户随手改。
  • 字段名带 [YYYYMMDD] 后缀、且不同 view 字段名不同(主力净买入额 vs 主力资金流向、指数简称 vs 股票简称),用前缀匹配取值、不写死列名。
  • HTML 图表零外部 CDN,自带明暗主题。

License

MIT