Eastmoney logo

Eastmoney

OrganizationPopular
HKUDS
eastmoney

东方财富(Eastmoney)免费免鉴权数据接口,覆盖资金流向、龙虎榜、融资融券、大宗交易、股东户数、限售解禁、行业概念板块、券商研报、财经新闻、A股/港股三大报表+主要指标、全市场选股与代码搜索;美股财报由 get_financial_statements 转 SEC EDGAR。东财请求经共享 IP 限速层节流(东财按源 IP 限流并临时封禁突发请求),通过 Vibe-Trading 工具直接调用,无需 token。

Overview

PublisherHKUDS
RepositoryVibe-Trading
Skill nameeastmoney
Stars
33.6K
Forks
5.5K
Bundled files
16
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 16 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by HKUDS on GitHub. Read the source before you install it.

Installation

Install the Eastmoney AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 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 after copying so it picks up the new skill.

Use it in TypingMind

Enable Eastmoney in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Eastmoney on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Eastmoney is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Eastmoney(东方财富)

概述

东方财富对外开放了一批免费、免鉴权的行情与披露接口(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:

python
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:

python
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 filterYYYY-MM-DD;kline beg/endYYYYMMDD
  • 返回:统一 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)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Eastmoney AI skill do?

东方财富(Eastmoney)免费免鉴权数据接口,覆盖资金流向、龙虎榜、融资融券、大宗交易、股东户数、限售解禁、行业概念板块、券商研报、财经新闻、A股/港股三大报表+主要指标、全市场选股与代码搜索;美股财报由 get_financial_statements 转 SEC EDGAR。东财请求经共享 IP 限速层节流(东财按源 IP 限流并临时封禁突发请求),通过 Vibe-Trading 工具直接调用,无需 token。

Why use Eastmoney on TypingMind?

Because you install it once and use it with any model. Eastmoney is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Eastmoney in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/eastmoney. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Eastmoney?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Eastmoney?

As many as you like. As long as a model supports skills, you can use Eastmoney with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Eastmoney AI skill free?

Yes. It is published on GitHub by HKUDS under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇