Eastmoney eastmoney

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

Works in Claude, ChatGPT, Codex and more
Our test
7/10✓ Verified
tested Dec 6, 2026
GitHub stars
40k
hkuds/vibe-trading
Added by
0
members
Updated
Dec 6
commit bd7b97d
Content
17 files
4 scripts · 48 KB
License
MIT
free to use

What our test found

The skill is a broad, organized reference for read-only market data tools, with parameters, schemas, examples, and useful rate-limit guidance, though it depends on project tools not included here.

Request we tested it on“Using the Eastmoney tools, summarize the latest 30 days of fund flows for 600519.SH and list its industry and concept boards. Note any missing data and avoid treating flow data as a guaranteed price signal.”

Limits spotted

  • Core tools and shared client are referenced from the host project rather than included, so the skill cannot run standalone.
  • The documentation gives no data timestamp or freshness guarantees, and some market-data interpretation may be easy to overstate.
  • Several files describe endpoints in detail, but users still need the host project's execution environment to retrieve actual results.
View on GitHub ↗
name: eastmoney
category: data-source
description: 东方财富(Eastmoney)免费免鉴权数据接口,覆盖资金流向、龙虎榜、融资融券、大宗交易、股东户数、限售解禁、行业概念板块、券商研报、财经新闻、A股/港股三大报表+主要指标、全市场选股与代码搜索;美股财报由 get_financial_statements 转 SEC EDGAR。东财请求经共享 IP 限速层节流(东财按源 IP 限流并临时封禁突发请求),通过 Vibe-Trading 工具直接调用,无需 token。

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:

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;kline beg/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) |