Operate and monitor the trading bot safely: detect stalls, verify LIVE/halting state, validate data freshness, restart cleanly, and produce human-readable health summaries.
dist/out/live_heartbeat_*.jsondist/out/live_signals_*.csvdist/out/live_trades_*.csv (if present)/api/trading/*risk_pct automatically.1) Confirm UI server reachable /api/status.
2) Read heartbeat: mode/status/halted/in_position/last_bar_ts.
3) Freshness: _hb_age_s, _bar_age_s.
4) Confirm signals file mtime is recent.
5) If stale: stop bot PID (runtime or heartbeat pid) → apply+restart.
6) Re-check last_bar_ts advances.
共 1 个版本