跳到正文
cccskills
免费在 GitHub 公开

ifind-repilot-finance-data-search

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.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

使用自然语言查询金融数据,支持A股股票、基金、期货等上市品种,覆盖基本资料、财务数据、日频行情信息、持仓信息及各类分析指标等数据。也支持宏观经济数据,包括世界经济数据、全球经济数据、中国经济数据、区域经济数据、行业经济数据、利率走势数据、商品数据和特色数据等。当需要查询上述金融相关数据查询时使用此 skill。

实测评分 未实测

查看安装方法

适用场景

  • Checking stock prices and daily market data
  • Retrieving recently disclosed revenue and profit
  • Comparing prices across stocks
  • Looking up economic indicators and interest rate trends

包含的文件(5)

  • SKILL.md4.3 KB
  • _meta.json152 B
  • .clawhub/origin.json225 B
  • scripts/fetch_data.py4.9 KB
  • skill-card.md2.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

概述

此 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 "同花顺收盘价"
茅台股价python3 <skill_dir>/scripts/fetch_data.py "贵州茅台当前股价"
苹果公司财报python3 <skill_dir>/scripts/fetch_data.py "苹果公司最近季度营收和利润"
上证指数python3 <skill_dir>/scripts/fetch_data.py "上证指数今日行情"
股票对比python3 <skill_dir>/scripts/fetch_data.py "比亚迪和蔚来股价对比"

返回格式

脚本直接返回查询结果的文本内容,通常是文本与 Markdown 表格格式的组合,示例:

提取数据:数据浏览器
|证券代码|证券简称|收盘价(元)|
|---|---|---|
|300033.SZ|同花顺|291.74|

提取数据:FinQuery
|股票代码|股票简称|日期|收盘价:不复权|
|---|---|---|---|
|300033.SZ|同花顺|20250808|287.78|

错误处理

错误信息原因解决方法
请先配置 auth_token未设置 token提示用户获取并发送token,收到token后,运行 --set-token 配置
API HTTP 错误请求失败检查网络或 API 地址
网络错误无法连接检查网络连接
API 返回失败接口返回错误查看具体错误信息
API HTTP 错误: 429触发当日请求限制提醒用户到飞研平台检查用量信息
API HTTP 错误: 401缺失token或者token无效提醒用户检查token是否正确
API HTTP 错误: 403没有权限访问接口没有权限访问接口
暂无结果当前问句没有检索到数据,并非token权限问题尝试生成一个新的自然语言查询语句重新查询

执行规则

  1. 先判断用户请求或任务是否需要金融数据检索。
  2. 若需要金融数据检索,根据用户请求内容与思考,生成一个合适的自然语言查询语句作为参数调用脚本。
  3. 若问题包含时间范围不明确的财务数据请求,默认查询最近已披露季度或最近财年,并在回答中明确说明默认时间范围。
  4. 若请求返回未检索到数据、或者返回的数据不符合期望,可以尝试生成一个新的自然语言查询语句重新查询。
  5. 不要编造任何金融数据。若脚本失败或返回空结果,应明确说明失败原因或未检索到数据。
  6. 将脚本输出中的关键数据提炼为简洁结论;如有表格,优先保留表格。
  7. 当出现401、403、429错误时,请勿再重试,直接提醒用户skill返回的错误内容。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 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日 更新

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.

中文简介正在准备中。当前显示英语简介。

  • Finding financial news related to a question
  • Researching market and industry developments
  • Checking news and public sentiment about a company
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 的全部技能

报告此技能的问题