name: eastmoney-financial-search description: 东方财富资讯搜索工具。基于东方财富妙想搜索能力,用于获取金融相关的新闻、公告、研报、政策、交易规则、事件分析、影响解读等时效性信息。支持个股资讯、板块新闻、宏观分析等。当用户需要搜索金融资讯、了解市场动态、查看研报解读时使用此skill。需要先配置apikey才能使用。
东方财富资讯搜索 (EastMoney Financial Search)
基于东方财富妙想搜索能力,智能筛选金融场景信源,获取权威及时的金融资讯。
功能
- 新闻资讯: 个股新闻、板块动态、市场热点
- 研究报告: 机构研报、投资观点、目标价
- 政策解读: 宏观政策、行业政策、监管规则
- 事件分析: 重大事件、市场异动、风险提示
- 交易规则: 交易所规则、业务细则
使用前配置
1. 获取 API Key
访问东方财富Skills页面获取 apikey
2. 配置 API Key
方式一(推荐)- 使用命令配置:
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py config <your_apikey>
方式二 - 环境变量:
export EASTMONEY_APIKEY=<your_apikey>
方式三 - 手动创建文件:
mkdir -p ~/.openclaw
echo "<your_apikey>" > ~/.openclaw/eastmoney_apikey
使用方法
基本搜索
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '<搜索问句>'
示例
个股资讯
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '立讯精密的资讯'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '格力电器最新研报'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '贵州茅台机构观点'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '宁德时代重大公告'
板块/主题
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '商业航天板块近期新闻'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '新能源政策解读'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '半导体行业最新动态'
宏观/风险
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '美联储加息对A股影响'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search 'A股具备自然对冲优势的公司 汇率风险'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '宏观经济形势分析'
综合解读
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '今日大盘异动原因'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '北向资金流向解读'
python3 ~/.openclaw/workspace/skills/eastmoney-financial-search/scripts/financial_search.py search '近期市场热点分析'
输出说明
脚本会输出:
- 控制台结果: 显示前5条资讯的标题、关联证券、核心内容
- JSON文件: 完整数据保存到
~/.openclaw/workspace/financial_news/ - 文本文件: 格式化的可读文本版本
Python API 使用
import sys
sys.path.insert(0, '/home/chenbaifu/.openclaw/workspace/skills/eastmoney-financial-search/scripts')
from financial_search import search_news, parse_result
# 搜索
data = search_news("格力电器最新研报")
result, error = parse_result(data)
if result:
print(f"找到 {len(result)} 条相关资讯")
for item in result:
print(f"标题: {item.get('title', '')}")
print(f"关联证券: {[s.get('secuName') for s in item.get('secuList', [])]}")
搜索类型参考
| 类型 | 示例问句 |
|---|---|
| 个股资讯 | 格力电器最新研报、贵州茅台机构观点 |
| 板块/主题 | 商业航天板块近期新闻、新能源政策解读 |
| 宏观/风险 | A股具备自然对冲优势的公司 汇率风险、美联储加息对A股影响 |
| 综合解读 | 今日大盘异动原因、北向资金流向解读 |
| 政策规则 | 科创板交易规则、北交所新股申购规则 |
| 事件分析 | 某公司股票异动原因、重大重组事件分析 |
返回字段说明
| 字段路径 | 说明 |
|---|---|
title |
信息标题,高度概括核心内容 |
secuList |
关联证券列表 |
secuList[].secuCode |
证券代码(如 002475) |
secuList[].secuName |
证券名称(如立讯精密) |
secuList[].secuType |
证券类型(股票/债券等) |
trunk |
信息核心正文/结构化数据 |
注意事项
- 信源权威: 基于东方财富专业数据库,避免过时或非权威信息
- 时效性强: 适合获取最新的市场动态和事件分析
- AI总结: 返回内容为AI整理后的核心要点
- 联网依赖: 需要联网使用
无数据时的处理
如果查询返回空数据,建议访问东方财富妙想AI进行更深入的资讯查询。