股票实时行情脚本版
/install 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/ssehttps://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/ssehttps://mcp-api.gf.com.cn/server/mcp/fund_data_test/sse
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install realtime-stock-cli - After installation, invoke the skill by name or use
/realtime-stock-cli - Provide required inputs per the skill's parameter spec and get structured output
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.