Model Equities Futures and Options in One Position Ledger

Last updated: November 29, 2026

Quick Overview

Design the classes for a position ledger that books fills across equities, futures, and listed options, tracking quantity, average cost, realized P&L, and unrealized P&L with the right contract multipliers.

Point72
Software Engineering Fundamentals
Software Engineer
Point72
November 29, 2026
Software Engineer
Phone Screen
Software Engineering Fundamentals
Easy

0

0

0 solved


Design the classes for a position ledger that books fills across equities, futures, and listed options, tracking quantity, average cost, realized P&L, and unrealized P&L with the right contract multipliers.

A multi-strategy fund like Point72 trades many asset classes, and the internal ledger has to treat a 50x futures contract and a 100-share option contract consistently with plain stock. Phone screens use this to check object-oriented judgment: what belongs on the instrument, what belongs on the position, and whether the P&L math survives a position that flips from long to short.

What the Interviewer Expects
  • Separate immutable instrument definitions from mutable position state
  • Put the contract multiplier on the instrument so P&L code has no asset-class branches
  • Handle adding to, reducing, closing, and flipping a position
  • Compute realized P&L only on the closing quantity
  • Keep the ledger keyed by instrument and easy to extend with new asset classes
Key Topics to Cover
object-oriented design
composition vs inheritance
average cost accounting
realized vs unrealized P&L
contract multipliers
How to Approach This
  1. Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
  2. Choose data structures based on access patterns, not familiarity.
  3. Prefer immutable data and message passing over shared mutable state for concurrency.
  4. Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
  • How would FIFO lot accounting change the design compared with average cost?
  • Where would FX conversion live for a position in a yen-denominated future?
  • How would you handle an option exercise that turns into a stock position?
  • What would you make immutable, and why does that help when many services read positions?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Book signed fills (positive buys, negative sells) for any instrument. For each instrument report quantity, average cost, realized P&L, and unrealized P&L at a given mark. Futures and options have mult...

High-Level Design

Instrument is a frozen value object holding symbol and multiplier, with subclasses that add fields like expiry or strike. The only behaviour it owns is notional(qty, price), so a position never as...


Submit Your Answer
Markdown supported