ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

mx_finance_search

基于东方财富数据库,支持自然语言搜索全网最新公告、研报、财经新闻、交易所动态及官方政策等,覆盖全球市场标的,可用于热点捕捉、舆情监控、研报速览、公告精读及投资决策等场景。Natural language search for financial information, covering authoritative sources including news, announcements, research reports, and policies. Supporting global market assets, it is applicable to event tracking, market sentiment monitoring, announcement analysis, and investment decision-making, helping users obtain authoritative financial information and capture timely market signals.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/akiry09/mx-mx-finance-search
Or

金融资讯搜索

通过自然语言查询检索时效性金融信息,数据来自于妙想大模型,适用场景包括:

  • 最新新闻与政策动态
  • 公司公告与事件跟踪
  • 券商研报与市场解读
  • 宏观事件对市场/板块影响分析

密钥来源与安全说明

  • 本技能仅使用一个环境变量:EM_API_KEY
  • EM_API_KEY 由东方财富妙想服务(https://ai.eastmoney.com/mxClaw)签发,用于其接口鉴权。
  • 在提供密钥前,请先确认密钥来源、可用范围、有效期及是否支持重置/撤销。
  • 禁止在代码、提示词、日志或输出文件中硬编码/明文暴露密钥。

功能范围

基础检索能力

  • 检索个股、板块、主题的最新资讯
  • 聚合公告、研报、新闻等公开信息
  • 返回可读正文内容(优先提取 llmSearchResponse
  • 支持将结果保存为本地 .txt 文件,便于追溯与复盘

输入建议

  • 查询建议包含至少一个明确目标:公司、板块、事件、政策或时间范围
  • 对语义不清的问句,应先做一次简洁澄清再执行检索
  • 汇总时保持关键数值、专有名词和原始语义不被篡改

查询示例

类型query 示例
个股资讯格力电器最新研报与公告、寒武纪 688256 最新动态
板块/主题商业航天板块近期新闻、新能源政策解读
宏观/风险美联储加息对A股影响、汇率风险相关公司案例
综合解读今日大盘异动原因、北向资金流向解读

前提条件

1. 注册东方财富妙想账号

访问 https://ai.eastmoney.com/mxClaw 注册账号并获取API_KEY。

2. 配置 Token

# macOS 添加到 ~/.zshrc,Linux 添加到 ~/.bashrc
export EM_API_KEY="your_api_key_here"

然后根据系统执行对应的命令:

macOS:

source ~/.zshrc

Linux:

source ~/.bashrc

快速开始

1. 命令行调用

python3 {baseDir}/scripts/get_data.py "寒武纪 688256 最新研报与公告"

输出示例

Saved: /path/to/workspace/mx_finance_search/mx_finance_search_90bf169c.txt
(随后输出资讯正文内容)

参数说明:

参数说明必填
query(位置参数)自然语言查询文本✅(位置参数或 stdin 二选一)
--no-save仅输出结果,不写入本地文件

2. 代码调用

import asyncio
from pathlib import Path
from scripts.get_data import query_financial_news

async def main():
    result = await query_financial_news(
        query="新能源板块近期政策与龙头公司动态",
        output_dir=Path("workspace/mx_finance_search"),
        save_to_file=True,
    )
    if "error" in result:
        print(result["error"])
    else:
        print(result["content"])
        if result.get("output_path"):
            print("已保存至:", result["output_path"])

asyncio.run(main())

输出文件说明

文件说明
mx_finance_search_<ID>.txt资讯正文文本(从返回中提取)

返回字段说明

  • content:提取后的资讯正文(优先 llmSearchResponse)。
  • output_path:当 save_to_file=True 且有内容时,返回保存路径。
  • raw:原始接口返回,便于调试或二次处理。
  • error:检索失败时返回错误信息。

环境变量

变量说明默认
EM_API_KEY新闻检索接口鉴权 key(必填)

常见问题

错误:EM_API_KEY is required.
→ 需配置EM_API_KEY,请联系官网获取并手动配置

没有传 query 时为什么直接退出?
→ 命令行会先读取位置参数 query,若为空再读取 stdin;两者都为空时打印帮助并退出。

如何只看输出,不落盘?

python3 -m scripts.get_data "商业航天板块近期新闻" --no-save

合规说明

  • 禁止在代码或提示词中硬编码账号 ID、会话 ID 或 token。
  • 环境变量按敏感信息处理,不在日志或回复中泄露。
  • 检索失败时不得编造事实,应返回明确错误或不确定性说明。
  • 输出应保持可追溯、可审计。

Metadata

Author@akiry09
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-akiry09-mx-mx-finance-search": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

mx_financial_assistant

基于东方财富权威金融数据库,打造覆盖"数据-资讯-知识-分析-决策"全链条的智能问答服务。通过自然语言交互, 为用户提供从基础金融知识科普到专业投资研究支持的全方位解决方案,实现"一问即达"的高效金融信息获取体验。 涵盖七大核心能力:全市场金融数据实时查询(A港美股、基金、债券)、全网财经资讯智能检索(公告、研报、新闻、政策)、 全球宏观经济数据追踪(国民经济、货币财政、产业就业)、多维度智能选股选基(技术面、基本面、消息面)、 专业金融百科知识问答、深度金融市场分析(趋势、资金、情绪)、以及实时热点事件解读(政策、公告、行业变革)。 适配多元化应用场景,满足机构投资者在投资研究、资产配置、风险管理、策略回测等方面的专业需求, 同时支持个人用户的理财决策、知识学习、行情监控与投资组合管理。 当用户提出自然语言问题并希望获得智能回答时使用此技能,包括但不限于: "帮我查一下"、"请问"、"分析一下"、"选股"、"推荐股票"、"XX怎么样"、"XX是什么"、 "解释一下"、"总结一下"、"最新政策"、"宏观数据"、"市场行情"、"基金筛选"等问答类请求。 支持标准模式和深度思考模式(deepThink)。 此技能不适用于需要生成完整报告的场景(如行业跟踪报告、首次覆盖报告),这些场景应使用对应的报告生成技能。

akiry09 4473

mx_macro_data

基于东方财富数据库,支持自然语言查询全球宏观经济数据,涵盖国民经济核算、价格指数、货币金融、财政收支、对外贸易、就业民生、产业运行等多个领域,适配各类宏观经济研究、市场分析、政策解读等多元专业场景需求。返回结果包含数据说明及 csv 文件。Natural language query for macroeconomic data from financial databases, covering national economic accounting, price indices, monetary finance, fiscal revenue and expenditure, foreign trade, employment, industrial operation, and other fields. It supports diverse scenarios including macroeconomic research, market analysis, and policy interpretation.

akiry09 4473

mx_finance_data

基于东方财富数据库,支持自然语言查询金融数据,覆盖A港美、基金、债券等多种资产,含实时行情、公司信息、估值、财务报表等,可用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,适配机构与个人多元需求。返回结果包含数据说明及 xlsx 文件。Natural language query for financial data across all markets, including A-shares, ETFs, bonds, Hong Kong and US stocks, and funds. It provides L1/L2 data, financial indicators, company profiles and valuation metrics. Ideal for investment research, strategy backtesting, market monitoring and industry analysis. It meets the needs of diverse institutions and individuals.

akiry09 4473

mx_stocks_screener

基于东方财富数据库,支持通过自然语言输入筛选A港美股、基金、债券等多种资产,支持多元指标筛选,含技术面、消息面、基本面及市场情绪等,可用于全球资产速筛、跨市场监控、投资组合构建、策略回测等场景。返回结果包含数据说明及 csv 文件。Natural language screener for investment assets across global markets, including A-shares, ETFs, bonds, HK and US stocks, and funds. It enables multi-dimensional filtering via technical, fundamental, sentiment and news indicators. Ideal for global asset selection, cross-market monitoring, portfolio construction and strategy backtesting.

akiry09 4473