hummingbot-heartbeat について
hummingbot-heartbeatは、Hummingbotの状態レポートを毎時作成し、接続済みのチャットチャンネルへ送るOpenClawのcronスキルです。APIの稼働状況、Gateway、ボット、エグゼキューター、ポートフォリオ残高を確認します。
主な機能
- 01毎時の状態レポート
- 02API稼働状況の確認
- 03Gateway状態の確認
- 04ボットとエグゼキューターの状態
- 05ポートフォリオ残高の報告
活用シーン
- 01チャットチャンネルへの毎時更新送信
- 02API、Gateway、ボット状態の確認
- 03直近のポートフォリオ残高の確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ hummingbot/ skills --skill hummingbot-heartbeatインストール後、Claude Code で/hummingbot-heartbeatを入力して読み込まれたか確認します。
同梱ファイル.env.examplescripts/bot_status.py
詳細
hummingbot-heartbeat
1 時間ごとに実行され、接続されたチャットチャンネル(Telegram、Discord など)に整形された Hummingbot ステータスレポートを配信する OpenClaw cron スキルです。API のヘルス、Gateway コンテナ、アクティブなボット/コントローラー、エグゼキューター、ポートフォリオ残高をカバーします。
インストール
clawhub install hummingbot-heartbeat
または、スキルディレクトリに手動でクローンします。
クイックスタート
1. OpenClaw cron ジョブをセットアップする
OpenClaw エージェントに次のように依頼します:
「hummingbot-heartbeat cron ジョブをセットアップして」
エージェントはスキルのパスを解決し、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_URL | http://localhost:8000 | Hummingbot API のベース URL |
API_USER | admin | API ユーザー名 |
API_PASS | admin | API パスワード |
要件
- 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 / | バージョンを返します |
| Gateway | docker ps | grep gateway | Docker が利用できない場合はスキップされます |
| アクティブなボット | GET /bot-orchestration/status | コントローラー設定を一覧表示します |
| アクティブなエグゼキューター | POST /executors/search | CLOSED/FAILED を除外します |
| ポートフォリオ | POST /portfolio/history | 価格付きの最新残高 |
コメント
Markdown 対応