Reference / Trade execution

What a strategy must provide

A strategy must supply seven of the eight things it can be asked for, and may leave the eighth alone.

Contents

The seven

Beginning, a prediction, an outcome, a timer, stopping, handing over its state to keep, and taking that state back. A strategy that leaves any of them out cannot be built at all.

The eighth

Being replayed an event is supplied already. The body that is there takes the record it is handed and discards it.

Source evidence
---
row: N10-03
baseline: 49aa659
created: 2026-11-07 04:30 UTC
modified: 2026-11-07 04:30 UTC
evidence:
  - claim: "Seven of the eight things a strategy can be asked must be supplied by it"
    source: "`nexus/strategy/base.py` 51-52, 64-65, 77-78, 98-99, 120-121, 142-143 and 164-165"
  - claim: "The eighth is supplied already, with a body that discards what it is handed"
    source: "`nexus/strategy/base.py` 196, the whole body of it"
---

Edit this sourceCheckout revision · 7381aa49
Reference / keep your place
Find a passage