realtime-stock-cli

脚本版股票实时行情查询。稳定执行名称模糊解析、代码去重、市场过滤和批量实时行情查询;使用 GF_MCP_AUTH_TOKEN 访问固定的股票 MCP 服务。Requires GF_MCP_AUTH_TOKEN.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "realtime-stock-cli" with this command: npx skills add 1028986368/realtime-stock-cli

股票实时行情脚本版

用这个 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

KlickAnalytics CLI

Demonstrates and teaches the KlickAnalytics CLI (`ka`) — a powerful analytics tool and agent-ready interface for financial markets intelligence. Use this ski...

Registry SourceRecently Updated
2580Profile unavailable
General

股票实时行情

查询股票实时行情。适用于用户用中文询问股票最新价、实时行情、涨跌幅、成交金额、市值、PE/PB,或按股票代码、股票名称、股票简称查询行情;会先用 news_stock_know_all 模糊解析股票代码,再用 fund_data_test 批量查询行情。Requires GF_MCP_AUTH_TOKEN.

Registry SourceRecently Updated
1700Profile unavailable
Web3

Twelve Data Official

Official Twelve Data integration for OpenClaw and ClawHub. Provides real-time and historical financial market data for stocks, forex, crypto, ETFs, indices,...

Registry SourceRecently Updated
2411Profile unavailable
Web3

Veroq

Provide verified AI intelligence on markets, assets, sentiment, and economic data with live prices, signals, analysis, and fact-checking from 1,000+ tickers...

Registry SourceRecently Updated
2200Profile unavailable