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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "hold_until_end"
}
}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. |