← 返回
未分类 中文

StockLobster

Monitor StockLobster webhook alerts through OpenClaw and route screened stock signals to chat channels such as Telegram. Use when setting up, documenting, te...
通过 OpenClaw 监控 StockLobster 的 webhook 警报,并将筛选后的股票信号转发至 Telegram 等聊天频道。适用于设置、记录等场景。
l3g l3g 来源
未分类 clawhub v1.0.0 1 版本 99706.7 Key: 无需
★ 0
Stars
📥 340
下载
💾 0
安装
1
版本
#latest

概述

StockLobster

Use this skill to wire StockLobster alerts into OpenClaw through the hooks gateway and deliver them to Telegram or another supported outbound channel.

Confirmed payload shape

Read references/payload-format.md for the confirmed payload schema and examples.

Recommended OpenClaw hook mapping

Use an agent mapping, not wake, when the goal is direct Telegram delivery.

Sanitized example:

{
  "hooks": {
    "enabled": true,
    "path": "/hooks",
    "token": "<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": "<TELEGRAM_CHAT_ID>"
      }
    ]
  }
}

Setup

  1. Enable hooks in ~/.openclaw/openclaw.json.
  2. Set a dedicated hooks token, not the shared gateway token.
  3. Use hook path /hooks and mapping path /stocklobster so the endpoint becomes:
    • http://:18789/hooks/stocklobster
  4. Use messageTemplate, not textTemplate, because this flow should use action: "agent" for channel delivery.
  5. Reference incoming webhook fields through payload, for example {{payload.text}}.
  6. Set:
    • deliver: true
    • channel: "telegram"
    • to: ""
  7. Restart the gateway after config changes:
openclaw gateway restart

Testing with curl

curl -X POST 'http://<HOST>:18789/hooks/stocklobster' \
  -H 'Authorization: Bearer <HOOKS_TOKEN>' \
  -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"}'

Expected response:

{"ok":true,"runId":"<RUN_ID>"}

If you only want to wake a session and not push to Telegram immediately, use action: "wake" with textTemplate, but that is a different flow.

Troubleshooting

  • hook mapping requires text
  • For wake, the rendered textTemplate was empty.
  • For agent, the rendered messageTemplate was empty.
  • In this OpenClaw build, templates resolve against payload, not json.
  • Hook accepted but no Telegram message arrived
  • Check that the mapping uses action: "agent".
  • Check deliver: true.
  • Check channel and to are set explicitly.
  • Restart the gateway after editing config.
  • Hook returns {"ok":true,"mode":"now"}
  • That indicates a wake event, not necessarily an outbound Telegram delivery.
  • Hook returns {"ok":true,"runId":"..."}
  • That indicates an agent run was created for delivery-capable handling.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 17:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,084 📥 813,114
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,698
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,229 📥 268,108