← Back to Skills Marketplace
1028986368

股票实时行情脚本版

by jollyzhang · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
36
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install realtime-stock-cli
Description
脚本版股票实时行情查询。稳定执行名称模糊解析、代码去重、市场过滤和批量实时行情查询;使用 GF_MCP_AUTH_TOKEN 访问固定的股票 MCP 服务。Requires GF_MCP_AUTH_TOKEN.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install realtime-stock-cli
  3. After installation, invoke the skill by name or use /realtime-stock-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug realtime-stock-cli
Version 0.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 股票实时行情脚本版?

脚本版股票实时行情查询。稳定执行名称模糊解析、代码去重、市场过滤和批量实时行情查询;使用 GF_MCP_AUTH_TOKEN 访问固定的股票 MCP 服务。Requires GF_MCP_AUTH_TOKEN. It is an AI Agent Skill for Claude Code / OpenClaw, with 36 downloads so far.

How do I install 股票实时行情脚本版?

Run "/install realtime-stock-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 股票实时行情脚本版 free?

Yes, 股票实时行情脚本版 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 股票实时行情脚本版 support?

股票实时行情脚本版 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 股票实时行情脚本版?

It is built and maintained by jollyzhang (@1028986368); the current version is v0.1.1.

💬 Comments