Expand description
Output checks for the order book stream contract.
BookStreamChecker consumes the [OrderBookDeltas] an adapter emits and rejects the first
batch that breaks the contract:
- Every batch ends with
F_LAST; an earlierF_LASTends an event group inside the batch, and each group is checked on its own, as theDataEnginepublishes them. - A snapshot group starts with
Clear, continues withAdddeltas, and flags every deltaF_SNAPSHOT; an empty snapshot is a loneClear. - An incremental group carries no
F_SNAPSHOTand noClear, and follows a snapshot. - Sequences increase within a snapshot episode when the checker requires it.
- The maintained book stays consistent, and a closed book emits nothing.
Harnesses compare the maintained book with venue truth through BookStreamChecker::verify,
which also counts verified episodes so a run can require every recovery to be checked.
Structs§
- Book
Stream Checker - Checks adapter order book output against the book stream contract.
Enums§
- Book
Contract Violation - A batch or book state that breaks the order book stream contract.