The Order Lifecycle
Between decision and terminal state, an order may be pending, accepted, resting, partially filled, canceling, replaced, rejected, expired, or uncertain.
Central questions
- Which event makes each transition authoritative?
- What happens when fills race with cancellation?
- How should duplicate or missing acknowledgements be interpreted?
Planned model
Animate client, gateway, and venue state on one timeline. Inject delay, duplication, rejection, partial execution, cancel races, and disconnects.