mcpField
H
hummingbot-heartbeat

hummingbot-heartbeat

github.com/hummingbot云与 DevOps32355 次安装21 周前更新
代码仓库

关于 hummingbot-heartbeat

hummingbot-heartbeat 是一个 OpenClaw 定时任务技能,每小时生成 Hummingbot 状态报告并发送到已连接的聊天频道。报告涵盖 API 健康状况、Gateway、机器人、执行器和投资组合余额。

主要功能

  1. 01每小时生成状态报告
  2. 02检查 API 健康状况
  3. 03检查 Gateway 状态
  4. 04查看机器人和执行器状态
  5. 05报告投资组合余额

适用场景

  1. 01向聊天频道发送 Hummingbot 每小时更新
  2. 02检查 API、Gateway 和机器人状态
  3. 03查看近期投资组合余额

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/hummingbot/skills --skill hummingbot-heartbeat

安装后在 Claude Code 中输入/hummingbot-heartbeat确认已加载。

附带文件.env.examplescripts/bot_status.py

详细介绍

hummingbot-heartbeat

一个 OpenClaw 定时任务技能,每小时运行一次,并向已连接的聊天频道(Telegram、Discord 等)发送格式化的 Hummingbot 状态报告。涵盖 API 健康状况、Gateway 容器、活跃机器人/控制器、执行器和投资组合余额。

安装

clawhub install hummingbot-heartbeat

或者手动克隆到你的技能目录中。

快速开始

1. 设置 OpenClaw 定时任务

向你的 OpenClaw Agent 询问:

“设置 hummingbot-heartbeat 定时任务”

Agent 会解析技能路径并使用 openclaw cron 注册该任务。你也可以手动操作:

# Replace <SKILL_PATH> with the actual installed path
openclaw cron add \
  --name "hummingbot-heartbeat" \
  --description "Hourly Hummingbot status check" \
  --every 1h \
  --announce \
  --channel telegram \
  --message "Run this and send output verbatim: python3 <SKILL_PATH>/scripts/bot_status.py"
2. 手动运行(调试)
python3 scripts/bot_status.py
python3 scripts/bot_status.py --json

配置

通过环境变量或技能目录中的 .env 文件进行设置:

# .env (optional — defaults shown)
HUMMINGBOT_API_URL=http://localhost:8000
API_USER=admin
API_PASS=admin
变量默认值说明
HUMMINGBOT_API_URLhttp://localhost:8000Hummingbot API 基础 URL
API_USERadminAPI 用户名
API_PASSadminAPI 密码

要求

  • Python 3.9+
  • Hummingbot API 正在运行(参见 hummingbot-deploy 技能)
  • Docker(可选——如果 Docker 不可用,则跳过 Gateway 状态检查)

示例输出

🤖 Hummingbot Status — Feb 28, 2026 09:06 AM

**Infrastructure**
  API:     ✅ Up (v1.0.1)
  Gateway: ✅ Up 17 hours

**Active Bots:** none

**Active Executors:** none

**Portfolio** (total: $187.23)
  Token           Units       Price      Value
  ------------ ----------- ---------- ----------
  SOL            2.0639    $81.4996    $168.20
  USDC          19.0286     $1.0000     $19.03

检查内容

检查项端点备注
API 健康状况GET /返回版本
Gatewaydocker ps | grep gateway如果 Docker 不可用,则跳过
活跃机器人GET /bot-orchestration/status列出控制器配置
活跃执行器POST /executors/search过滤掉 CLOSED/FAILED
投资组合POST /portfolio/history包含最新余额及价格

评论

支持 Markdown