docs: explain strategy replay and durable execution code

This commit is contained in:
Boki 2026-10-25 11:31:23 -04:00
parent 8587c71cf3
commit dd7ac53c51
19 changed files with 494 additions and 41 deletions

View file

@ -23,7 +23,7 @@ Start with these canonical files; older classes under `strategies/builtin/` belo
| --- | --- |
| `now`, `barrier` | Engine time and a synchronized decision point; each required input has an availability status. |
| `observations` | Observations published since this owner last ran, including buffered input for slower decision cadences. `event_time` describes the market event; `available_at` says when the strategy may know it. This is not the entire historical dataset. |
| `positions` | Positions across owners. Filter by **both** `ownerId` and `instrumentId` when reading your strategy's holding. |
| `positions` | Positions already filtered to this strategy's `ownerId`. Select the relevant `instrumentId` when reading a holding. Account-wide positions are in `portfolio.portfolio.positions`. |
| `portfolio` | Read-only native account view. A strategy cannot alter cash by changing this object. |
| `state` | Your previously confirmed plain JSON state. Return a replacement in `nextState`. |
| `previousAdmission` | The previous decision's admission outcome, not a stream of subsequent fills. Read current positions for current holdings. |