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.
Best use case
mx_finance_search is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
基于东方财富数据库,支持自然语言搜索全网最新公告、研报、财经新闻、交易所动态及官方政策等,覆盖全球市场标的,可用于热点捕捉、舆情监控、研报速览、公告精读及投资决策等场景。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.
Teams using mx_finance_search should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/mx-mx-finance-search/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How mx_finance_search Compares
| Feature / Agent | mx_finance_search | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
基于东方财富数据库,支持自然语言搜索全网最新公告、研报、财经新闻、交易所动态及官方政策等,覆盖全球市场标的,可用于热点捕捉、舆情监控、研报速览、公告精读及投资决策等场景。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.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agent for Product Research
Browse AI agent skills for product research, competitive analysis, customer discovery, and structured product decision support.
AI Agent for SaaS Idea Validation
Use AI agent skills for SaaS idea validation, market research, customer discovery, competitor analysis, and documenting startup hypotheses.
Best AI Skills for ChatGPT
Find the best AI skills to adapt into ChatGPT workflows for research, writing, summarization, planning, and repeatable assistant tasks.
SKILL.md Source
# 金融资讯搜索
通过**自然语言查询**检索时效性金融信息,数据来自于妙想大模型,适用场景包括:
- **最新新闻与政策动态**
- **公司公告与事件跟踪**
- **券商研报与市场解读**
- **宏观事件对市场/板块影响分析**
## 密钥来源与安全说明
- 本技能仅使用一个环境变量:`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
```bash
# macOS 添加到 ~/.zshrc,Linux 添加到 ~/.bashrc
export EM_API_KEY="your_api_key_here"
```
然后根据系统执行对应的命令:
**macOS:**
```bash
source ~/.zshrc
```
**Linux:**
```bash
source ~/.bashrc
```
## 快速开始
### 1. 命令行调用
```bash
python3 {baseDir}/scripts/get_data.py "寒武纪 688256 最新研报与公告"
```
**输出示例**
```text
Saved: /path/to/workspace/mx_finance_search/mx_finance_search_90bf169c.txt
(随后输出资讯正文内容)
```
**参数说明:**
| 参数 | 说明 | 必填 |
|---|---|---|
| `query`(位置参数) | 自然语言查询文本 | ✅(位置参数或 stdin 二选一) |
| `--no-save` | 仅输出结果,不写入本地文件 | 否 |
### 2. 代码调用
```python
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;两者都为空时打印帮助并退出。
**如何只看输出,不落盘?**
```bash
python3 -m scripts.get_data "商业航天板块近期新闻" --no-save
```
## 合规说明
- 禁止在代码或提示词中硬编码账号 ID、会话 ID 或 token。
- 环境变量按敏感信息处理,不在日志或回复中泄露。
- 检索失败时不得编造事实,应返回明确错误或不确定性说明。
- 输出应保持可追溯、可审计。Related Skills
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
Twitter Command Center (Search + Post)
Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the user completes OAuth in the browser. Use when the user asks about Twitter/X data, social listening, or posting without sharing account passwords.
openclaw-search
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.
search-for-service
Search and browse the x402 bazaar marketplace for paid API services. Use when you or the user want to find available services, see what's available, discover APIs, or need an external service to accomplish a task. Also use as a fallback when no other skill clearly matches — search the bazaar to see if a paid service exists. Covers "what can I do?", "find me an API for...", "what services are available?", "search for...", "browse the bazaar".
afrexai-personal-finance
Complete personal finance system — budgeting, debt payoff, investing, tax optimization, net worth tracking, and financial independence planning. Use when managing money, building wealth, paying off debt, planning retirement, or optimizing taxes. Zero dependencies.
search-cluster
Aggregated search aggregator using Google CSE, GNews RSS, Wikipedia, Reddit, and Scrapling.
alphashop-sel-product-search
商品搜索API SKILL:通过关键词搜索发现Amazon/TikTok平台商品。 支持价格、销量、评分、上架时间等多维度筛选条件。 通过 AlphaShop REST API 调用遨虾AI选品系统的商品搜索服务。
1688-product-search
1688商品搜索SKILL:提供完整的1688商品搜索能力,包括类目查询、关键词搜索、图片搜索、商品详情、相关性商品、拉取货盘底池等9个核心接口。 支持多语言搜索和商品推荐,使用1688开放平台官方API,统一鉴权,Token全局缓存共享。
exa-web-search-free
Free AI search via Exa MCP. Web search for news/info, code search for docs/examples from GitHub/StackOverflow, company research for business intel. No API key needed.
duckduckgo-search
Performs web searches using DuckDuckGo to retrieve real-time information from the internet. Use when the user needs to search for current events, documentation, tutorials, or any information that requires web search capabilities.
youtube-search
YouTube Search API via AIsa unified endpoint. Search YouTube videos, channels, and playlists with a single AIsa API key — no Google API key or OAuth required. Use this skill when users want to search YouTube content. For other AIsa capabilities (LLM, financial data, Twitter, web search), see the aisa-core skill.