Skip to content
CN2.DEVBUKYA NARESH
DATA INTEGRITYVERIFIEDENTRY 07 / 08

QUESTION

How should equal-timestamp market events be ordered so replay is reproducible?

  1. 01

    HYPOTHESIS

    Without deterministic tie-breaking, equal-timestamp events order arbitrarily across runs, making replay irreproducible.

  2. 02

    METHOD

    Reorder stage with explicit deterministic tie-breaking rules; repeated replay verification that output is byte-identical.

  3. 03

    EVIDENCE

    quant-market-data-replay determinism verification: identical replays across runs including tie-breaking.

  4. 04

    RESULT

    Replay determinism holds under nanosecond timestamps with equal-timestamp events.

  5. 05

    LIMITATION

    Tie-breaking rules encode an ordering assumption — an approximation of true within-timestamp causality.

  6. 06

    CONCLUSION

    Determinism requires explicit choices at every ambiguity. Defaulting to insertion order is a choice; making it deliberate is the difference.

EVIDENCE SOURCE

QUANT MARKET DATA REPLAY

Every backtest is a claim about the past — and most are wrong in a specific, preventable way: they let strategies see the future.

METHOD — TEST SUITE · DETERMINISM