본문으로 건너뛰기
cccskills
무료GitHub에 공개

ifind-repilot-news-search

Search financial news, industry developments, and company sentiment using natural-language questions. Retrieve related headlines, summaries, sources, and article links through a Python script, with optional date ranges to focus the search on a specific period.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

通过问句语义化搜索全市场金融资讯(新闻、舆情、市场动态等),返回与问句相关的新闻片段信息。当需要检索金融新闻、市场资讯、行业动态、公司舆情等信息时,使用此 skill。

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Finding financial news related to a question
  • Researching market and industry developments
  • Checking news and public sentiment about a company
  • Searching interest-rate policy news within a date range

포함된 파일(5)

  • SKILL.md5.2 KB
  • _meta.json144 B
  • .clawhub/origin.json209 B
  • scripts/fetch_data.py6.8 KB
  • skill-card.md2.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

概述

此 skill 通过自然语言问句查询(向量检索)全市场金融资讯。它调用封装好的 Python 脚本,向同花顺数据接口发送请求,返回与问句相关的新闻列表信息。支持按照时间范围查询。

前置要求

环境依赖

  • Python 3.x
  • 标准库:json, urllib, pathlib
  • 无需安装第三方库
  • 注1:若 python3 命令不可用(常见于 Windows),请改用 python
  • 注2:<skill_dir> 为当前 skill 所在目录的完整路径,请根据当前上下文自动获取。

首次配置

首次使用 skill 前,需要先配置认证 token。

  1. 提示用户先从飞研平台获取 token。平台地址: https://repilot.51ifind.com/ ,菜单路径:业务管理 -> Skills技能库。
  2. 用户提供token后,运行以下命令配置 token:
python3 <skill_dir>/scripts/fetch_data.py --set-token <your_auth_token>
  1. 检查 token 是否已配置:
python3 <skill_dir>/scripts/fetch_data.py --check-token

注:配置文件位于:~/.config/ifind-repilot/config.json

使用方式

基本查询

python3 <skill_dir>/scripts/fetch_data.py "<自然语言查询语句>"

带时间范围查询

python3 <skill_dir>/scripts/fetch_data.py "<自然语言查询语句>" --start-date <开始日期> --end-date <结束日期>

日期格式:YYYY-MM-DDTHH:MM:SS,例如 2025-01-01T00:00:00

日期参数可以放在查询语句之前或之后:

# 方式一:日期参数在前
python3 <skill_dir>/scripts/fetch_data.py --start-date 2025-01-01T00:00:00 --end-date 2026-01-01T00:00:00 "美联储利率政策"

# 方式二:日期参数在后
python3 <skill_dir>/scripts/fetch_data.py "美联储利率政策" --start-date 2025-01-01T00:00:00 --end-date 2026-01-01T00:00:00

查询示例

查询内容命令
美联储利率政策python3 <skill_dir>/scripts/fetch_data.py "美联储利率政策"
同花顺最新资讯python3 <skill_dir>/scripts/fetch_data.py "同花顺"
2025年美联储利率政策python3 <skill_dir>/scripts/fetch_data.py "美联储利率政策" --start-date 2025-01-01T00:00:00 --end-date 2025-12-31T23:59:59

返回格式

脚本直接返回查询结果的 JSON 数据,包含以下字段:

字段类型说明
totalint检索到的新闻总数
status_codeint状态码,0表示成功
status_msgstring状态信息
dataarray新闻列表

每条新闻包含以下字段:

字段类型说明
titlestring新闻标题
summarystring新闻摘要
urlstring新闻原文链接
channelstring频道类型
publish_timeint发布时间(Unix时间戳)
publish_datestring发布时间(格式:YYYY-MM-DD HH:MM:SS)
scoreint相关性评分
extraobject扩展信息(如 publish_source 来源)

返回示例:

{
  "total": 15,
  "status_code": 0,
  "data": [
    {
      "title": "龙虎榜丨同花顺今日涨停,二机构合计净卖出6.41亿元",
      "summary": "11月7日,同花顺今日涨停,成交额132.06亿元...",
      "url": "https://www.jiemian.com/article/11954485.html",
      "channel": "news",
      "publish_time": 1730968311,
      "publish_date": "2024-11-07 16:31:51",
      "score": 100,
      "extra": {
        "publish_source": "界面新闻"
      }
    }
  ],
  "status_msg": "OK"
}

错误处理

错误信息原因解决方法
请先配置 auth_token未设置 token提示用户获取并发送token,收到token后,运行 --set-token 配置
API HTTP 错误请求失败检查网络或 API 地址
网络错误无法连接检查网络连接
API 返回失败接口返回错误查看具体错误信息
API HTTP 错误: 429触发当日请求限制提醒用户到飞研平台检查用量信息
API HTTP 错误: 401缺失token或者token无效提醒用户检查token是否正确
API HTTP 错误: 403没有权限访问接口没有权限访问接口

执行规则

  1. 先判断用户请求或任务是否需要金融资讯检索。
  2. 若需要金融资讯检索,根据用户请求内容与思考,生成一个合适的自然语言查询语句作为参数调用脚本。
  3. 若请求返回未检索到数据、或者返回的数据不符合期望,可以尝试生成一个新的自然语言查询语句重新查询。
  4. 不要编造任何金融资讯。若脚本失败或返回空结果,应明确说明失败原因或未检索到数据。
  5. 将脚本输出内容进行重新组织和提炼;保留新闻标题、来源和摘要中的重要数据。
  6. 当出现401、403、429错误时,请勿再重试,直接提醒用户skill返回的错误内容。

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Retrieve locally stored Chinese A-share prices, financial statements, and valuation context through the project's shared interfaces. Look up technical indicators, inspect available data fields, and check data dates when results disagree.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking a stock's prices and valuation context
  • Retrieving financial data across reporting periods
  • Looking up technical indicators and their data dates
hsliuping/TradingAgents-CN3.2만2026년 9월 22일 업데이트

Retrieve financial data through natural language queries, including Chinese A-share stocks, funds, futures, company financials, and economic indicators. The skill calls a Python script and presents key results as concise summaries and tables.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking stock prices and daily market data
  • Retrieving recently disclosed revenue and profit
  • Comparing prices across stocks
hsliuping/TradingAgents-CN3.2만2026년 9월 22일 업데이트

Design and generate agents in Nanobot by finding reusable tools, skills, prompts, and existing agent configurations. Guide requirements and confirmation, create focused agent assets, and follow recorded real-data testing and evaluation before publication.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Designing an agent around existing project resources
  • Adapting existing agent configurations and prompts
  • Identifying missing tools and calculation capabilities
hsliuping/TradingAgents-CN3.2만2026년 9월 22일 업데이트

Investigate and fix agent behavior in TradingAgentsCN by checking active database prompt templates, prompt assembly code, and output processing. Apply targeted changes and verify them with focused tests, template checks, and workflow logs.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Investigating prompt changes that do not affect runtime behavior
  • Synchronizing database templates with prompt assembly code
  • Tracing incorrect dates or price references in position analysis
hsliuping/TradingAgents-CN3.2만2026년 9월 22일 업데이트

Estimate the distribution of stockholders' purchase costs for Chinese A-share stocks using price and volume data. A triangular model produces cost concentration metrics, the estimated share below the current price, and visualization charts.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Examining estimated purchase cost distributions for Chinese A-share stocks
  • Checking the estimated share of holdings below the current price
  • Identifying price ranges with concentrated holdings
hsliuping/TradingAgents-CN3.2만2026년 9월 22일 업데이트

hsliuping의 스킬 모두 보기

이 스킬의 문제 신고