Design a Trade Capture and Real-Time Position Service for Options
Last updated: November 29, 2026
Quick Overview
Design the system that receives fills from every exchange and clearing drop copy, normalizes them into a single trade record, maintains real-time positions and PnL per account and option series, and reconciles against the clearing firm at end of day.
Chicago Trading Company
November 29, 20260
0
0 solved
Design the system that receives fills from every exchange and clearing drop copy, normalizes them into a single trade record, maintains real-time positions and PnL per account and option series, and reconciles against the clearing firm at end of day.
CTC hires Java engineers specifically for trade capture, the system of record that traders, risk and operations all depend on. The interviewer is checking correctness first (no lost or double-counted fills, deterministic replays) and then latency and reconciliation, rather than raw throughput.
What the Interviewer Expects
- Identifies sources: exchange order-entry execution reports, exchange drop copies, clearing files
- Defines an idempotent trade key and deduplicates across sources
- Uses an append-only event log as the system of record with derived positions
- Handles busts, corrections and late trades as new events, not in-place edits
- Serves real-time positions to risk and traders with clear freshness guarantees
- Describes end-of-day reconciliation and break handling
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
- The same fill arrives from the order-entry session and the drop copy with different ids. How do you match them?
- An exchange busts a trade an hour later. Walk through what changes downstream.
- How do you rebuild positions after a bug in the PnL logic was deployed for a day?
- Corporate actions adjust option contracts (deliverables, strikes). Where does that logic live?
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 fills from all venues, normalize to one schema, keep live positions and PnL by account, strategy and series, support busts and corrections, reconcile nightly with the clearing firm....
High-Level Design
- Ingest adapters per source: execution reports from the firm's own order gateways (fastest), exchange drop copies (independent confirmation), and clearing files at end of day.
- Normalizer ...