Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

本机管理控制

AlphaBound 管理命令不走网络:CLI 写入 DB 同目录控制文件,daemon 主环每 tick 消费一次。

命令

./zig-out/bin/alphabound --config config/local.toml --control pause
./zig-out/bin/alphabound --config config/local.toml --control resume
./zig-out/bin/alphabound --config config/local.toml --control reconcile
./zig-out/bin/alphabound --config config/local.toml --control cancel-all
./zig-out/bin/alphabound --config config/local.toml --control flatten
./zig-out/bin/alphabound --config config/local.toml --control 'target-weight=0.05'
./zig-out/bin/alphabound --config config/local.toml --control shutdown
./zig-out/bin/alphabound --config config/local.toml --control status
命令行为
pause停止 agent 决策环;行情/风险/对账继续
resume恢复 agent;若风险态为 HALTED,同时 operator_reset → EXIT_ONLY(再经对账回到 NORMAL)
reconcile立即触发一次私有 REST 余额对账
cancel-all取消开放订单。Shadow:只记审计事件;demo/live(交易模式):拉 pending 并逐笔 cancel-order
flatten操作员退出:进入 FLATTENING,主环自动市价卖向 weight=0;BTC 低于 lot dust 后 flatten_complete → HALTED
target-weight=W操作员目标仓位(0–1 小数);经同一 planner/执行栈;写审计锚点 ADMIN_TARGET_WEIGHT
shutdown等价安全停机(与 SIGTERM 相同排空路径)
status读 *.control.state(daemon 写入)

控制文件:var/trading.control(one-shot,消费后删除)
状态文件:var/trading.control.state

Dashboard /api/v1/system 含 "paused": true|false。

安全

  • 控制面不暴露为 HTTP API;MCP 也不能 pause/flatten/下单。
  • target-weight / flatten 在 shadow 下不触达交易所;demo/live 会真实发单(live 须已 opt-in)。
  • 生产操作请用服务用户:sudo -u alphabound /opt/alphabound/current/alphabound --config ... --control ...