← 返回 Skills 市场
1536
总下载
2
收藏
9
当前安装
2
版本数
在 OpenClaw 中安装
/install eastmoney-tools
功能描述
东方财富金融数据工具集,集成选股、资讯搜索、行情财务查询三大功能。当用户查询 A股、港股、美股相关数据时使用,包括:条件选股、股票推荐、板块成分股;新闻、公告、研报、政策搜索;实时行情、财务指标、公司信息、资金流向等数据查询。
使用说明 (SKILL.md)
东方财富金融工具集 (eastmoney-tools)
统一入口,根据用户 query 自动路由到合适的 API。支持多 API Key 轮换。
API Key 配置
方式 1:单 Key(环境变量)
export EASTMONEY_APIKEY="your-api-key"
方式 2:多 Key 轮换(vault)
从 vault 读取多个 key,按顺序轮换:
cat ~/.openclaw/workspace/vault/credentials/eastmoney.json
vault 文件格式:
{
"name": "Eastmoney API Keys",
"keys": [
"mkt_xxx1",
"mkt_xxx2",
"mkt_xxx3"
]
}
获取 Key
如果没有设置 EASTMONEY_APIKEY,从 vault 读取:
cat ~/.openclaw/workspace/vault/credentials/eastmoney.json
路由规则
根据用户意图自动判断调用哪个 API:
| 用户意图关键词 | 路由到 | API 端点 |
|---|---|---|
| 选股、推荐股票、条件筛选、符合xx的股票、成分股 | 选股 | /finskillshub/api/claw/stock-screen |
| 新闻、资讯、消息、公告、研报、政策、解读 | 资讯搜索 | /finskillshub/api/claw/news-search |
| 股价、市值、PE、市盈率、财报、盈利、利润、收入、资金流向、基本面 | 数据查询 | /finskillshub/api/claw/query |
API 调用
公共配置
API_BASE="https://mkapi2.dfcfs.com"
多 Key 轮换逻辑
- 优先使用环境变量
EASTMONEY_APIKEY - 如果环境变量未设置,从 vault 读取多个 key
- 按顺序尝试每个 key
- 如果返回
status != 0(限流或错误),自动切换下一个 key - 所有 key 都失败后返回错误
1. 选股 API
curl -X POST "${API_BASE}/finskillshub/api/claw/stock-screen" \
-H "Content-Type: application/json" \
-H "apikey: ${API_KEY}" \
-d '{"keyword": "用户查询", "pageNo": 1, "pageSize": 20}'
适用场景:
- 条件选股:"今日涨幅2%的股票"、"市盈率低于10的银行股"
- 板块成分股:"半导体板块的成分股"
- 股票推荐:"低估值高分红的股票推荐"
2. 资讯搜索 API
curl -X POST "${API_BASE}/finskillshub/api/claw/news-search" \
-H "Content-Type: application/json" \
-H "apikey: ${API_KEY}" \
-d '{"query": "用户查询"}'
适用场景:
- 个股资讯:"格力电器最新研报"
- 板块新闻:"新能源政策解读"
- 宏观分析:"美联储加息对A股影响"
3. 数据查询 API
curl -X POST "${API_BASE}/finskillshub/api/claw/query" \
-H "Content-Type: application/json" \
-H "apikey: ${API_KEY}" \
-d '{"toolQuery": "用户查询"}'
适用场景:
- 行情数据:"贵州茅台最新价"
- 财务指标:"宁德时代市盈率"
- 公司信息:"比亚迪主营业务"
错误处理
- 自动重试:当某个 key 被限流(返回非 status=0),自动切换到下一个 key
- 保持返回原始 JSON 格式,不做转换
安全使用建议
Before installing: verify the skill's source and vendor (no homepage/source provided). Confirm whether the skill truly requires EASTMONEY_APIKEY and prefer setting that environment variable yourself rather than relying on the skill to read a local vault. The SKILL.md tells the agent to cat ~/.openclaw/workspace/vault/credentials/eastmoney.json (not declared in the manifest) — this could expose multiple API keys or other sensitive data. If you proceed, either (a) set a single EASTMONEY_APIKEY in the agent environment and ensure the agent is blocked from reading your vault path, or (b) inspect the vault file contents locally and ensure it only contains keys you intend to share. Also verify the API_BASE domain (https://mkapi2.dfcfs.com) is legitimate for your use. If you cannot confirm the publisher or do not want the agent to access local credential files, do not install or enable autonomous invocation for this skill.
功能分析
Type: OpenClaw Skill
Name: eastmoney-tools
Version: 1.0.1
The skill is a financial data toolset for the Eastmoney platform (dfcfs.com), providing endpoints for stock screening, news search, and market data. It includes instructions for the agent to manage API keys, including a fallback mechanism to read credentials from a specific local file (~/.openclaw/workspace/vault/credentials/eastmoney.json). The behavior is well-documented, uses legitimate corporate domains, and lacks any indicators of malicious intent or unauthorized data exfiltration.
能力评估
Purpose & Capability
The name/description (Eastmoney financial data: screening, news, query) align with the APIs and API_BASE used. However, the registry metadata earlier claimed no required env vars while SKILL.md declares EASTMONEY_APIKEY as required and documents vault-based multi-key rotation — this metadata mismatch is an inconsistency that should be resolved.
Instruction Scope
Runtime instructions explicitly tell the agent to read a local vault file (cat ~/.openclaw/workspace/vault/credentials/eastmoney.json) when the environment variable is absent. That file path is not declared in the skill's manifest. Direct instructions to read local files (especially credential stores) are scope-creep and present a potential data-exposure vector.
Install Mechanism
No install spec and no code files are present (instruction-only). This minimizes installation risk because nothing is downloaded or written to disk by an installer.
Credentials
Requesting an EASTMONEY_APIKEY is proportionate to the stated purpose. However, the SKILL.md also relies on a vault file containing multiple API keys and instructs reading it without declaring required config paths. That increases the scope of sensitive data access beyond the single API key and is not justified in the manifest.
Persistence & Privilege
The skill is not always-enabled and is user-invocable; autonomous invocation is allowed (platform default). Autonomous invocation combined with explicit instructions to read a local vault raises the blast radius if the agent runs the skill without tight file-access controls, so be cautious even though 'always' is false.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install eastmoney-tools - 安装完成后,直接呼叫该 Skill 的名称或使用
/eastmoney-tools触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
新增多 API Key 轮换功能,支持每日 50+ 次调用
v1.0.0
eastmoney-tools 1.0.0 changelog:
- Initial release of comprehensive financial data tools for 东方财富.
- Supports stock screening, news search, and real-time financial data queries for A-shares, Hong Kong stocks, and US stocks.
- Automatic routing to stock screening, news, or data query APIs based on user intent and keywords.
- Requires an API key (EASTMONEY_APIKEY) from 东方财富技能市场.
- Handles errors by trying alternative APIs and returns raw JSON format.
元数据
常见问题
东方财富金融工具集 是什么?
东方财富金融数据工具集,集成选股、资讯搜索、行情财务查询三大功能。当用户查询 A股、港股、美股相关数据时使用,包括:条件选股、股票推荐、板块成分股;新闻、公告、研报、政策搜索;实时行情、财务指标、公司信息、资金流向等数据查询。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1536 次。
如何安装 东方财富金融工具集?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install eastmoney-tools」即可一键安装,无需额外配置。
东方财富金融工具集 是免费的吗?
是的,东方财富金融工具集 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
东方财富金融工具集 支持哪些平台?
东方财富金融工具集 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 东方财富金融工具集?
由 moer(@torchesfrms)开发并维护,当前版本 v1.0.1。
推荐 Skills