eastmoney
HKUDS/Vibe-Trading · Agent Skill
Provides free access to Eastmoney data, covering fund flows, leaderboards, margin trading, block trades, and financial news.
Jump to install ↓Overview
| Publisher | |
|---|---|
| Repository | HKUDS/Vibe-Trading ↗ |
| Skill folder | eastmoney |
| Stars | 33,024 |
| Bundled files | 17 |
| License | MIT |
| Last updated | September 1, 2026 |
| Links | Skill source ↗ · Repository ↗ |
Mozgi check
What we found in the skill files. Details come with a subscription.
Installation
A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.
Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.
Install the “eastmoney” skill from mozgi.io (https://mozgi.io/skills/eastmoney/) for me. 1. Download the archive: https://mozgi.io/skills/eastmoney/download If it fails, take the skill folder from the source: https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/eastmoney 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “eastmoney” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/eastmoney/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/HKUDS/Vibe-Trading.git /tmp/Vibe-Trading mkdir -p .claude/skills cp -r /tmp/Vibe-Trading/agent/src/skills/eastmoney .claude/skills/eastmoney
Restart Claude Code — the skill appears in the list; call it manually with /eastmoney. For all projects use ~/.claude/skills.
git clone --depth 1 --branch main https://github.com/HKUDS/Vibe-Trading.git /tmp/Vibe-Trading mkdir -p .agents/skills cp -r /tmp/Vibe-Trading/agent/src/skills/eastmoney .agents/skills/eastmoney
Codex looks for skills in .agents/skills from the current folder up to the repo root; call one with /skills or $eastmoney. For all projects use ~/.agents/skills.
git clone --depth 1 --branch main https://github.com/HKUDS/Vibe-Trading.git /tmp/Vibe-Trading mkdir -p .cursor/skills cp -r /tmp/Vibe-Trading/agent/src/skills/eastmoney .cursor/skills/eastmoney
Cursor picks the skill up on start; call it with “/” in Agent chat. Cursor also reads .claude/skills and .agents/skills. For all projects use ~/.cursor/skills.
git clone --depth 1 --branch main https://github.com/HKUDS/Vibe-Trading.git /tmp/Vibe-Trading mkdir -p .gemini/skills cp -r /tmp/Vibe-Trading/agent/src/skills/eastmoney .gemini/skills/eastmoney
Gemini CLI offers to activate the skill when a task matches — you approve it. For all projects use ~/.gemini/skills.
Read SKILL.md and any companion files before deciding whether to install. Click a file to preview it.
SKILL.md contents
Original author text · read-onlyEastmoney(东方财富)
概述
东方财富对外开放了一批免费、免鉴权的行情与披露接口(push2 / push2his / datacenter-web / reportapi / search-api)。这些接口由 Vibe-Trading 内置工具封装,统一返回 {"ok": true/false, ...} JSON 信封,覆盖 A 股 / 港股 / 美股的资金面、披露面、舆情面与基本面数据。本技能是上述接口的索引页:每个接口的端点 URL、入参、返回字段写在 references/ 下;调用范例写在 scripts/ 下。
> 限速红线:东方财富按源 IP 限流,并会临时封禁突发请求。所有工具内部已经过共享 per-host 节流层(backtest.loaders._http),切勿绕过工具直接对端点发起裸 HTTP 突发请求。可用环境变量 VIBE_TRADING_EASTMONEY_MIN_INTERVAL 调整最小请求间隔(默认 1.0 秒)。
快速上手
这些接口已注册为 Vibe-Trading 工具,直接以工具名调用即可,无需安装 SDK、无需 token:
from src.tools.fund_flow_tool import FundFlowTool
# 主力 / 超大单 / 大单 / 中单 / 小单 净流入(近 30 日)
print(FundFlowTool().execute(codes=["600519.SH", "00700.HK"], period="daily", days=30))
底层共享客户端 backtest.loaders.eastmoney_client 负责 secid 解析与限速 GET:
from backtest.loaders.eastmoney_client import resolve_secid, get_json
resolve_secid("600519.SH") # -> "1.600519"
resolve_secid("00700.HK") # -> "116.00700"
resolve_secid("AAPL.US") # -> "105.AAPL"(经 suggest 端点解析并进程内缓存)
参数格式说明
- 代码(symbol):
<code>.<exchange>形式,交易所后缀大写。A 股600519.SH/000001.SZ/830799.BJ,港股00700.HK(零填充至 5 位),美股AAPL.US。 - secid:东财内部寻址
<market>.<code>。SH=1,SZ/BJ=0,HK=116,美股 NASDAQ=105 / NYSE=106 / AMEX=107(美股 market 前缀由 suggest 端点解析)。 - 日期:datacenter
filter用YYYY-MM-DD;klinebeg/end用YYYYMMDD。 - 返回:统一 JSON 字符串信封,成功
{"ok": true, "market", "source": "eastmoney", "data": {...}},失败{"ok": false, "error": ...}。单个失败 symbol 以 per-symbol error 上报,不中断批次。
> 链接约定:本文档内所有指向 references/ 的链接均以相对本文档的形式书写(references/...),这是 GitHub 在浏览器中打开该文件时解析的形式。read_file 工具会把同一字符串解析到拥有它的技能目录下,因此人和 agent 读到的是同一份文件。新增文档请沿用相对形式,并保证 references 路径在各技能之间不重名:两个技能同时拥有的路径会被报为歧义,而不会被猜测。
python 脚本示例
接口列表
资金面
| 工具 | 标题(详细文档) | 市场 | 描述 |
| ---- | -------------- | ---- | ---- |
| get_fund_flow | 资金流向 ↗ | A股/港股/美股 | 主力/超大单/大单/中单/小单净流入,日线历史或当日分钟线 |
龙虎榜
| 工具 | 标题(详细文档) | 市场 | 描述 |
| ---- | -------------- | ---- | ---- |
| get_dragon_tiger | 龙虎榜 ↗ | A股 | 某交易日全市场上榜个股 + 指定个股的买卖席位排名 |
参考数据(披露面)
| 工具 | 标题(详细文档) | 市场 | 描述 |
| ---- | -------------- | ---- | ---- |
| get_margin_trading | 融资融券 ↗ | A股 | 个股每日融资余额/融资买入/融券余额/RZRQ 合计 |
| get_block_trades | 大宗交易 ↗ | A股 | 逐笔成交价/量/额、相对收盘折溢价、买卖营业部 |
| get_shareholder_count | 股东户数 ↗ | A股 | 各报告期股东户数、环比变动、户均持股 |
| get_lockup_expiry | 限售解禁 ↗ | A股 | 个股全历史解禁表,或全市场未来 N 日解禁日历 |
板块
| 工具 | 标题(详细文档) | 市场 | 描述 |
| ---- | -------------- | ---- | ---- |
| get_sector_info | 行业概念板块 ↗ | A股 | 个股所属行业/概念板块(membership)或行业板块按涨幅排名(ranking) |
研报舆情
| 工具 | 标题(详细文档) | 市场 | 描述 |
| ---- | -------------- | ---- | ---- |
| get_research_reports | 券商研报 ↗ | A股 | 券商研报列表(标题/机构/分析师/评级/EPS·PE 预测)+ 同花顺一致预期 EPS |
| get_stock_news | 财经新闻 ↗ | A股/港股/美股 | 个股新闻或全市场财经快讯(A 股走东财,美/港走 Yahoo) |
财务报表(A 股 / 港股;美股走 SEC)
| 工具 | 标题(详细文档) | 市场 | 描述 |
| ---- | -------------- | ---- | ---- |
| get_financial_statements | 三大报表与主要指标 ↗ | A股/港股(东财)·美股(SEC EDGAR) | 资产负债表/利润表/现金流量表/主要指标;美股不再走东财 |
选股检索
| 工具 | 标题(详细文档) | 市场 | 描述 |
| ---- | -------------- | ---- | ---- |
| screen_market | 全市场选股 ↗ | A股/美股/港股 | 全市场按涨跌幅/成交量/成交额/换手率排名取 top N |
| search_symbol | 代码搜索 ↗ | 多市场 | 名称/代码片段解析为候选 symbol + 市场(东财 suggest + Yahoo + SEC CIK) |
Frequently asked questions
What does the eastmoney skill do?
Provides free access to Eastmoney data, covering fund flows, leaderboards, margin trading, block trades, and financial news.
How do I install eastmoney?
Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.
Which AI models work with eastmoney?
Skills are plain Markdown instructions (the Agent Skills format), so eastmoney works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.
Is eastmoney free?
The skill is published openly by HKUDS under the MIT license. The skill itself costs nothing — you only pay your AI provider for the tokens you use.
Is it safe to install skills?
A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.
How is a skill different from an MCP server or a plugin?
An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.