Menu
Dev.to #systemdesign·December 3, 2026

Designing a Futures Tick Database for Time-Travel Backtesting

An exploration of architectural requirements for futures tick databases, highlighting the critical distinction between event time and availability time for accurate algorithmic trading backtests.

Read original on Dev.to #systemdesign

The Dual-Clock Architecture

Building a reliable historical tick database requires maintaining two distinct timelines: event time (when the upstream exchange event occurred) and availability time (when the data actually became visible to your trading strategy). Using only event timestamps creates unrealistic backtests by ignoring historical access latency and data propagation delays.

Handling Corrections and Cancellations

In high-frequency financial domains, trades are frequently corrected or cancelled after initial publication. A robust tick database must support point-in-time queries to reconstruct the exact view a strategy had at any given millisecond, rather than blindly applying retroactively corrected tapes.

⚠️

Data Pipeline Pitfall

Do not use final, fully corrected historical endpoints for live-like backtesting. If your system cannot replay data exactly as it was streamed in real-time, your strategy metrics will suffer from look-ahead bias.

Storage and Indexing Strategies

  • Append-Only Delivery Log: Store raw incoming messages immutably with strict sequencing to preserve original delivery order.
  • Derived Latest View: Maintain a separate materialized view for retrospective analysis that incorporates trade corrections and cancellations.
  • Cutoff Testing: Validate database projections by querying historical states at specific cutoffs to ensure reproducibility after compaction.
tick databasetime-seriesevent sourcingbacktestingfinancial engineeringdata pipelinestorage architecture

Comments

Loading comments...

Want the fundamentals behind stories like this? Take the free System Design Academy course with certificate.