Design a Point-in-Time Data Store for Backtesting Without Lookahead
Last updated: November 29, 2026
Quick Overview
Design a research data platform that stores market, fundamental and alternative datasets so that any backtest can ask what was known as of a given timestamp, including restatements, late arrivals and corporate actions, without lookahead bias.
Millennium
November 29, 20260
0
0 solved
Design a research data platform that stores market, fundamental and alternative datasets so that any backtest can ask what was known as of a given timestamp, including restatements, late arrivals and corporate actions, without lookahead bias.
Quant pods at Millennium backtest signals on vendor and alternative data, and a backtest that sees restated or late data a day early looks great and loses money live. The interviewer is checking bitemporal modeling, ingestion that preserves history, and a query interface researchers can use safely.
What the Interviewer Expects
- Models both event time (valid time) and knowledge time (when the firm had it)
- Never overwrites: restatements append a new version
- Handles symbology and corporate actions with an identifier master and adjustment factors
- Provides an as-of query API used by both backtests and production signals
- Covers storage format and partitioning for fast cross-sectional reads
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle a vendor that backfills history without telling you what changed?
- How would you let researchers query 20 years of daily data for 10,000 stocks in seconds?
- How do you make sure the live signal reads exactly the same data path as the backtest?
- How do you track dataset entitlements per pod?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: ingest daily and intraday vendor files, store every version, answer get(dataset, ids, fields, as_of=T) returning only values whose knowledge time is at most T, plus security master looku...
High-Level Design
Landing zone keeps raw vendor files immutably with arrival timestamps. Ingestion jobs parse, map vendor identifiers to an internal security id via a point-in-time security master, and write rows with ...