Skip to content
cccskills
FreePublished on GitHub

eastmoney

Access stock fund flows, disclosures, news, financial statements, and market rankings through Vibe-Trading tools. The skill documents available data interfaces and examples, including symbol lookup, with market-specific sources and no token required.

OriginalShow the original description

东方财富(Eastmoney)免费免鉴权数据接口,覆盖资金流向、龙虎榜、融资融券、大宗交易、股东户数、限售解禁、行业概念板块、券商研报、财经新闻、A股/港股三大报表+主要指标、全市场选股与代码搜索;美股财报由 get_financial_statements 转 SEC EDGAR。

东财请求经共享 IP 限速层节流(东财按源 IP 限流并临时封禁突发请求),通过 Vibe-Trading 工具直接调用,无需 token。

Works withSEC EDGAR

Run score Not tested

See how to install

Good for

  • Review fund flows for Chinese, Hong Kong, and US stocks
  • Check Chinese stock disclosures and lockup expiry dates
  • Retrieve company financial statements and stock news
  • Find ticker symbols and rank stocks across a market

Files included (17)

  • SKILL.md6.6 KB
  • references/参考数据/大宗交易.md2.4 KB
  • references/参考数据/股东户数.md3.1 KB
  • references/参考数据/融资融券.md2.1 KB
  • references/参考数据/限售解禁.md2.9 KB
  • references/板块/行业概念板块.md2.8 KB
  • references/研报舆情/券商研报.md2.7 KB
  • references/研报舆情/财经新闻.md2.6 KB
  • references/财务报表/三大报表与主要指标.md3.6 KB
  • references/资金面/资金流向.md2.5 KB
  • references/选股检索/代码搜索.md2.8 KB
  • references/选股检索/全市场选股.md2.2 KB
  • references/龙虎榜/龙虎榜.md2.9 KB
  • scripts/disclosure_example.py2.5 KB
  • scripts/fund_flow_example.py1.9 KB
  • scripts/fundamentals_example.py2.4 KB
  • scripts/screen_search_example.py1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

adr-hshare

FreeSummary

Compare a Chinese company's US depositary receipts, Hong Kong shares, and mainland shares after adjusting for exchange rates and share ratios. Analyze pricing gaps, valuation differences, and delisting risks to support research into its different listings.

  • Compare A-share and H-share pricing gaps
  • Measure ADR premiums against Hong Kong shares
  • Review US delisting risks and Hong Kong listing alternatives
HKUDS/Vibe-Trading36.5KUpdated Oct 24, 2026

akshare

FreeSummary

Retrieve stock prices, futures quotes, exchange rates, and economic indicators with the free Python library AKShare. The skill explains market-specific functions, symbol formats, and data preparation for analysis and testing strategies against historical data.

  • Retrieve historical prices for Chinese, US, and Hong Kong stocks
  • Collect Chinese GDP and consumer price data
  • Check futures quotes and foreign exchange rates
HKUDS/Vibe-Trading36.5KUpdated Oct 24, 2026

alpha-zoo

FreeSummary

Explore bundled libraries of investment factors, signals used to compare securities, and inspect individual formulas and metadata. Evaluate a factor or an entire library across a chosen universe and period, producing aggregate performance statistics and an HTML report.

  • Find bundled momentum or reversal factors
  • Inspect a named factor's formula and metadata
  • Compare a factor library across a chosen universe and period
HKUDS/Vibe-Trading36.5KUpdated Oct 24, 2026

Assess whether a Chinese A-share company may receive ST or *ST risk warnings next financial year. Review financial forecasts, dividends, audit opinions, and regulatory penalties, then report risk severity separately from confidence in the prediction.

  • Reviewing a Chinese A-share company's future ST risk
  • Assessing escalation risk for an existing ST or *ST stock
  • Checking revenue, equity, and dividend warning signs
HKUDS/Vibe-Trading36.5KUpdated Oct 24, 2026

asset-allocation

FreeSummary

Plan portfolio allocations across assets using risk, correlations, return forecasts, and trading costs. Compare five optimization methods, produce settings for config.json, and define rebalancing rules that adjust holdings back toward their target weights.

  • Comparing allocations across stocks, bonds, and gold
  • Choosing an optimizer based on return forecasts and correlations
  • Preparing portfolio settings for config.json
HKUDS/Vibe-Trading36.5KUpdated Oct 24, 2026

Diagnose failed or abnormal backtests, which test trading strategies on historical data. Inspect result files, strategy code, and configuration to identify bugs, make targeted repairs, rerun tests, and verify the updated metrics.

  • Investigating backtest execution errors
  • Finding why a strategy produces no trades
  • Checking delayed trades or low capital usage
HKUDS/Vibe-Trading36.5KUpdated Oct 24, 2026

See all skills by HKUDS

Report a problem with this skill