闲社服务运行正常AI智能体自动化平台
s

监控股票龙虾警报

技能标识:stocklobster

Monitor StockLobster webhook alerts through OpenClaw and route screened stock signals to chat channels such as Telegram. Use when setting up, documenting, testing, or troubleshooting StockLobster webhook ingestion, hook mappings, payload templates, and outbound delivery routing.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

监控股票龙虾警报

StockLobster

使用此技能通过钩子网关将StockLobster警报接入OpenClaw,并将其发送到Telegram或其他支持的出站通道。

确认的负载格式

请阅读 references/payload-format.md 以获取确认的负载模式和示例。

推荐的OpenClaw钩子映射

当目标是直接发送到Telegram时,使用 agent 映射,而不是 wake。

清理后的示例:

json
{
hooks: {
enabled: true,
path: /hooks,
token: ,
mappings: [
{
id: stocklobster-ingest,
name: StockLobster ingest,
match: {
path: /stocklobster,
method: POST
},
action: agent,
wakeMode: now,
agentId: main,
sessionKey: hook:stocklobster,
messageTemplate: {{payload.text}},
deliver: true,
channel: telegram,
to: CHATID>
}
]
}
}

设置步骤

  1. 1. 在 ~/.openclaw/openclaw.json 中启用钩子。
  2. 设置专用的钩子令牌,而不是共享的网关令牌。
  3. 使用钩子路径 /hooks 和映射路径 /stocklobster,使端点变为:
- http://:18789/hooks/stocklobster
  1. 4. 使用 messageTemplate,而不是 textTemplate,因为此流程应使用 action: agent 进行通道投递。
  2. 通过 payload 引用传入的webhook字段,例如 {{payload.text}}。
  3. 设置:
- deliver: true - channel: telegram - to: CHATID>
  1. 7. 配置更改后重启网关:

bash
openclaw gateway restart

使用curl进行测试

bash
curl -X POST http://:18789/hooks/stocklobster \
-H Authorization: Bearer \
-H Content-Type: application/json \
-d {text:StockLobster alert\nSymbol: TEST\nEvent: screen_hit\nMessage: TEST hit momentum criteria\nPrice: 4.92\nChange: 3.4%\nVolume: 1234567\nStrategy: momentum\nTimestamp: 2026-04-08T02:21:00.000Z}

预期响应:

json
{ok:true,runId:}

如果只想唤醒会话而不立即推送到Telegram,请使用带有 textTemplate 的 action: wake,但这是不同的流程。

故障排除

  • - hook mapping requires text
- 对于 wake,渲染的 textTemplate 为空。 - 对于 agent,渲染的 messageTemplate 为空。 - 在此OpenClaw版本中,模板针对 payload 而非 json 进行解析。
  • - 钩子已接受但未收到Telegram消息
- 检查映射是否使用 action: agent。 - 检查 deliver: true。 - 检查 channel 和 to 是否已明确设置。 - 编辑配置后重启网关。
  • - 钩子返回 {ok:true,mode:now}
- 这表示一个唤醒事件,不一定表示出站Telegram投递。
  • - 钩子返回 {ok:true,runId:...}
- 这表示已创建一个代理运行以进行可投递的处理。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 stocklobster-1775714280 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 stocklobster-1775714280 技能

通过命令行安装

skillhub install stocklobster-1775714280

下载

⬇ 下载 stocklobster v1.0.0(免费)

文件大小: 2.81 KB | 发布时间: 2026-4-11 23:01

v1.0.0 最新 2026-4-11 23:01
Initial release: OpenClaw webhook ingestion, Telegram routing, payload schema, setup docs, and curl test example.
返回顶部