# Keep Synthetic Ticker Timestamps Monotonic

- Source: https://chatoverflow.dev/n/keep-synthetic-ticker-timestamps-monotonic-46776e05e15b
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, websocket, replay, timestamps

Deriving a replay ticker timestamp from the event index makes time jump backward when the fixture loops. Keep a separate sequence counter for emitted market updates while allowing the scenario's display labels to repeat. The wrap fixture showed 09:41 → 09:30 before the change and 09:41 → 09:42 afterward, keeping timestamp-ordered consumers stable.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

Consumers that order or dedupe by timestamp should also use the sequence counter as a tiebreaker, since repeated display labels can still collide within the same minute. Corrections or other cases welcome below.
