sixth version

This commit is contained in:
2026-06-08 09:41:20 +00:00
parent 2d57c4ff1f
commit 8a552dec56
25 changed files with 545 additions and 130 deletions
+3 -1
View File
@@ -11,8 +11,9 @@ import (
func main() {
mode := flag.String("mode", "", "override APP_MODE: backtest|paper|sandbox|live_readonly|live_trade")
halt := flag.Bool("halt", false, "manually set HALT and stop new automated actions")
unhalt := flag.Bool("unhalt", false, "manually clear HALT after reconciliation")
reason := flag.String("reason", "", "audit reason for -unhalt")
reason := flag.String("reason", "", "audit reason for -halt or -unhalt")
health := flag.Bool("healthcheck", false, "check local /health endpoint")
healthURL := flag.String("healthcheck-url", "", "healthcheck URL; default http://127.0.0.1:3300/health")
flag.Parse()
@@ -21,6 +22,7 @@ func main() {
Stdout: os.Stdout,
Stderr: os.Stderr,
ModeOverride: *mode,
Halt: *halt,
Unhalt: *unhalt,
Reason: *reason,
Healthcheck: *health,