← 返回 Skills 市场
1028986368

股票实时行情脚本版

作者 jollyzhang · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
36
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install realtime-stock-cli
功能描述
脚本版股票实时行情查询。稳定执行名称模糊解析、代码去重、市场过滤和批量实时行情查询;使用 GF_MCP_AUTH_TOKEN 访问固定的股票 MCP 服务。Requires GF_MCP_AUTH_TOKEN.
使用说明 (SKILL.md)

股票实时行情脚本版

用这个 skill 稳定查询股票实时行情。它内置脚本,会先按股票名称/简称模糊解析上市代码,再批量查询实时行情。

这个版本包含可执行脚本,会读取 GF_MCP_AUTH_TOKEN 并向固定的 MCP endpoint 发起请求。适合需要更稳定执行的用户;如果更看重上架扫描结果和最小权限,使用 gf-realtime-stock 的 instruction-only 版本。

脚本只访问以下固定 endpoint,不接受用户传入 URL:

  • https://mcp-api.gf.com.cn/server/mcp/news_stock_know_all/sse
  • https://mcp-api.gf.com.cn/server/mcp/fund_data_test/sse

配置

GF_MCP_AUTH_TOKEN 必须由宿主或 ClawHub 作为敏感环境变量提供。

不要把 token 发到聊天里。若缺少 token,用户应到这里创建:

https://mcp.gf.com.cn/cms/tokens

用法

node scripts/quote.mjs 中信
node scripts/quote.mjs 广发证券 腾讯控股
node scripts/quote.mjs --market a 广发证券 腾讯控股
node scripts/quote.mjs --market hk 广发证券 腾讯控股

市场参数:

  • 不传 --market:展示全部匹配结果
  • --market a:只展示 A 股代码,通常为 6 位数字
  • --market hk:只展示港股代码,通常为 5 位数字

行为

名称解析调用 news_stock_know_all/stk_base_info_get,固定参数:

{
  "conditions": [
    "contain,abbr_name,'模糊的股票名称'",
    "eq,list_stat_cd,'1'"
  ],
  "fields": ["scr_cd", "abbr_name"],
  "pagesize": "20",
  "pageindex": "1"
}

fields 固定且只能是 ["scr_cd", "abbr_name"],脚本不会添加其他字段。

行情查询调用 fund_data_test/news_real_time_stock,多只股票会合并为一次调用:

{
  "stock_code": "'00700','000776'"
}

安全

  • GF_MCP_AUTH_TOKEN 已在 frontmatter metadata 中声明为必需环境变量
  • 不打印 token
  • 不写入 token
  • 不展示 MCP headers、sessionId 或原始 endpoint query
  • 只向这两个固定域名 endpoint 发请求:
    • https://mcp-api.gf.com.cn/server/mcp/news_stock_know_all/sse
    • https://mcp-api.gf.com.cn/server/mcp/fund_data_test/sse
安全使用建议
Before installing, make sure you trust the GF MCP stock service and provide GF_MCP_AUTH_TOKEN only through the platform’s sensitive environment-variable mechanism. Do not paste the token into chat or prompts.
功能分析
Type: OpenClaw Skill Name: realtime-stock-cli Version: 0.1.1 The skill is a legitimate stock market query tool designed to interact with Guangfa Securities (gf.com.cn) MCP services. It uses a Node.js script (scripts/quote.mjs) to resolve stock names and fetch real-time quotes using a required environment variable (GF_MCP_AUTH_TOKEN). The script implements a transparent MCP-over-SSE client and strictly communicates with hardcoded, official endpoints without any signs of data exfiltration or malicious execution.
能力评估
Purpose & Capability
The stated purpose is real-time stock quote lookup, and the included script performs stock name resolution, code filtering, and quote retrieval.
Instruction Scope
The instructions describe user-invoked Node commands for stock lookups and do not tell the agent to override user intent, hide actions, or perform unrelated tasks.
Install Mechanism
There is no package install or remote installer; the only runtime requirement is Node and the included script.
Credentials
The skill requires GF_MCP_AUTH_TOKEN and sends it to the GF MCP stock endpoints; this is disclosed and proportionate to the stock-query purpose.
Persistence & Privilege
The artifacts do not show file writes, background persistence, privilege escalation, local credential-store access, or mutation of user accounts/data.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install realtime-stock-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /realtime-stock-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Security metadata update: use single-line JSON runtime metadata declaring node and GF_MCP_AUTH_TOKEN, and document fixed MCP endpoints.
v0.1.0
Initial CLI/script release: stable fuzzy listed-stock lookup with fixed fields and batched real-time quote queries.
元数据
Slug realtime-stock-cli
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

股票实时行情脚本版 是什么?

脚本版股票实时行情查询。稳定执行名称模糊解析、代码去重、市场过滤和批量实时行情查询;使用 GF_MCP_AUTH_TOKEN 访问固定的股票 MCP 服务。Requires GF_MCP_AUTH_TOKEN. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。

如何安装 股票实时行情脚本版?

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

股票实时行情脚本版 是免费的吗?

是的,股票实时行情脚本版 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

股票实时行情脚本版 支持哪些平台?

股票实时行情脚本版 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 股票实时行情脚本版?

由 jollyzhang(@1028986368)开发并维护,当前版本 v0.1.1。

💬 留言讨论