🧪 Skills
Tradebot Ops
Monitor trading bot health by detecting stalls, verifying LIVE status and data freshness, restarting safely if needed, and summarizing status clearly.
v1.0.0
Description
tradebot-ops
Purpose
Operate and monitor the trading bot safely: detect stalls, verify LIVE/halting state, validate data freshness, restart cleanly, and produce human-readable health summaries.
Use when
- Bot shows LIVE but no updates (stale heartbeat/bars)
- Chart frozen / signals file not updating
- Need to answer: “Is it running? Is it safe? Why no trades?”
Inputs
dist/out/live_heartbeat_*.jsondist/out/live_signals_*.csvdist/out/live_trades_*.csv(if present)- UI endpoints:
/api/trading/*
Outputs
- One-paragraph health summary
- If unhealthy: one action (restart/clear stale) + verification
- Audit log entry
Safety rails
- Never raise
risk_pctautomatically. - Prefer restart/self-heal over loosening risk.
Checklist
- Confirm UI server reachable
/api/status. - Read heartbeat: mode/status/halted/in_position/last_bar_ts.
- Freshness:
_hb_age_s,_bar_age_s. - Confirm signals file mtime is recent.
- If stale: stop bot PID (runtime or heartbeat pid) → apply+restart.
- Re-check last_bar_ts advances.
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!