← 返回 Skills 市场
qiuqp

FinXData

作者 QQP · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install finxdata
功能描述
当用户需要查询、解释或排障 FinXData 金融数据 API 时使用本技能,包括股票、市场、龙虎榜、限售解禁、宏观经济、FRED、异动追踪、额度、更新频率、API Key 配置、错误处理或服务健康状态。本技能调用与 FinXData MCP 工具相同的公开 HTTP 接口。
使用说明 (SKILL.md)

FinXData

FinXData 用于需要鉴权的金融数据查询。可调用的数据接口与 MCP 工具表面一致,包括 /health/api/quota/api-key,以及 /api/v1/summary 中列出的当前 GET /api/v1/http/* 接口。

配置

export FINXDATA_API_KEY="sk-..."
export FINXDATA_BASE_URL="https://api.finxdata.ai"

FINXDATA_BASE_URL 是可选项。

如果没有设置 FINXDATA_API_KEY,先提示用户需要登录 www.finxdata.ai 申请 API Key,再继续调用需要鉴权的数据接口。healthsummary 可在没有 API Key 时调用。

调用流程

优先使用内置封装脚本:

python3 scripts/finxdata.py summary
python3 scripts/finxdata.py quota
python3 scripts/finxdata.py stock quote --code 600519
python3 scripts/finxdata.py market price --code 000001 BK0477
python3 scripts/finxdata.py market hot-stocks --limit 100

封装脚本会输出 API 返回的 JSON;大多数数据接口返回 {"code": 200, "data": "\x3CMarkdown>"}。脚本已内置网络重试、超时控制和常见 HTTP 错误的友好提示。

按这个顺序处理用户请求:

  1. 需要确认接口能力时,先运行 summary,再选择具体命令。
  2. 需要查询数据时,调用最窄的接口和参数;多股票报价或指数价格优先一次传多个 code
  3. 查询失败时,先读脚本返回的 codemessage,不要把 curl 或堆栈错误直接抛给用户。
  4. 返回给普通用户时,优先总结关键字段、日期范围、是否有数据和下一步建议;不要只贴原始 JSON。

参考资料

  • 精简接口列表:读取 references/api.md
  • 场景示例、更新节奏、配额处理、示例结果和 FAQ:读取 references/usage.md

规则

  • 数据接口需要 X-API-Key
  • 不确定某个接口是否可用时,先查询 /api/v1/summary
  • 不描述上游数据源,只描述接口内容、参数、更新时间口径和返回结果。
  • 不把金融数据解释成投资建议;需要判断时说明数据来源于接口返回,结论仅供信息整理。
  • 如果配额不足,先运行 quota,用 daily_remainingdaily_useddaily_maxprepaid_balancegift_remainingretry_after_seconds 给出可理解的处理建议。
  • 对网络、超时、5xx、429 这类暂时性问题,说明脚本已重试;建议稍后重试、缩小查询范围或检查额度/网络。
安全使用建议
Install this if you intend the agent to call FinXData for finance data. Configure FINXDATA_API_KEY only in trusted environments, keep FINXDATA_BASE_URL on the official trusted service unless you deliberately use another endpoint, and be aware that implicit invocation may use API quota for matching finance-data requests.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is authenticated financial data lookup and troubleshooting, and the artifacts match that purpose with documented FinXData endpoints, quota checks, health checks, and result summarization guidance.
Instruction Scope
The skill allows implicit invocation and covers several finance-data scenarios, so it could make external FinXData requests when a finance query matches; however, the trigger text and runtime instructions are tied to FinXData API use rather than unrelated activity.
Install Mechanism
The package contains documentation, references, a YAML agent config, and a Python wrapper script; there is no installer, package download step, background service setup, or autostart mechanism.
Credentials
The script reads FINXDATA_API_KEY and optional FINXDATA_BASE_URL and sends authenticated GET requests to the configured API host, which is proportionate for this API wrapper; users should keep the base URL pointed at a trusted FinXData endpoint.
Persistence & Privilege
No file writes, credential storage, privilege escalation, long-running worker, or persistent state were found. The API key is only read from the environment and added as an X-API-Key header, with error output sanitized for the configured key.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install finxdata
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /finxdata 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the finxdata skill for FinXData financial data API support and troubleshooting. - Supports querying, explaining, and diagnosing API endpoints for stocks, markets, macroeconomic data, API Key configuration, error handling, and service health checks. - Utilizes shell and Python scripts to interact with FinXData APIs, featuring network retries, timeout control, and user-friendly error messages. - Outlines step-by-step request handling rules and provides clear instructions for configuration and quota management. - Emphasizes user guidance, clear summarization of API responses, and restriction on providing investment advice.
元数据
Slug finxdata
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

FinXData 是什么?

当用户需要查询、解释或排障 FinXData 金融数据 API 时使用本技能,包括股票、市场、龙虎榜、限售解禁、宏观经济、FRED、异动追踪、额度、更新频率、API Key 配置、错误处理或服务健康状态。本技能调用与 FinXData MCP 工具相同的公开 HTTP 接口。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。

如何安装 FinXData?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install finxdata」即可一键安装,无需额外配置。

FinXData 是免费的吗?

是的,FinXData 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

FinXData 支持哪些平台?

FinXData 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 FinXData?

由 QQP(@qiuqp)开发并维护,当前版本 v1.0.0。

💬 留言讨论