🎁 Get the FREE AI Skills Starter Guide — Subscribe →
BytesAgainBytesAgain
🦀 ClawHub

Eastmoney Financial Search

by @yunduanmanbu

Search and retrieve timely financial news, reports, announcements, and policy analyses based on user queries from Eastmoney data.

Versionv1.0.0
Downloads4,064
TERMINAL
clawhub install eastmoney-finance-news

📖 About This Skill

eastmoney_financial_search - 东方财富资讯搜索技能

基于东方财富妙想搜索能力,用于获取涉及时效性信息或特定事件信息的金融资讯(新闻、公告、研报、政策解读等)。

功能

  • 根据用户问句搜索相关金融资讯
  • 返回可读文本内容,包含标题、关联证券列表、核心正文
  • 可选保存到工作目录
  • 环境变量

  • EASTMONEY_APIKEY: 东方财富 API key (默认:mkt_Z19TUfMY79_44k4wZsAHIVGVva0-g8PxD_DkBDQx2iM)
  • API 接口

    POST https://mkapi2.dfcfs.com/finskillshub/api/claw/news-search
    Content-Type: application/json

    { "apikey": "", "query": "立讯精密的资讯" }

    返回字段

    | 字段 | 释义 | |------|------| | title | 信息标题 | | secuList | 关联证券列表 | | trunk | 信息核心正文 |

    示例问句

  • 格力电器最新研报、贵州茅台机构观点
  • 商业航天板块近期新闻、新能源政策解读
  • A 股具备自然对冲优势的公司、汇率风险
  • 今日大盘异动原因、北向资金流向解读
  • 使用示例

    from urllib.request import Request
    import json

    def get_eastmoney_news(query): apikey = os.environ.get("EASTMONEY_APIKEY", "mkt_Z19TUfMY79_44k4wZsAHIVGVva0-g8PxD_DkBDQx2iM") url = "https://mkapi2.dfcfs.com/finskillshub/api/claw/news-search" data = { "apikey": apikey, "query": query } req = Request(url, data=json.dumps(data).encode("utf-8"), headers={"Content-Type": "application/json"}) with urllib.request.urlopen(req) as response: result = json.loads(response.read().decode("utf-8")) return result