Hold without orders until completion
hold_until_endRepeatedly advance an authenticated run without adding orders until it completes, liquidates, or reaches max_bars. This bounded helper handles terminal waiting; require_flat can enforce cash-only execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | Run UUID returned by start_run. | |
| max_bars | No | Maximum one-bar advances before stopping; defaults to 256 and acts as a safety cap. | |
| require_flat | No | When true, reject the call unless the run has no open positions; use this guard for cash-only waiting. |