PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Fanatics

Design a retail trading platform

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competencies in designing scalable, low-latency retail trading systems, covering system architecture, order routing and state management, market data ingestion, cash and position ledger consistency, risk controls, and compliance/observability.

  • hard
  • Fanatics
  • System Design
  • Software Engineer

Design a retail trading platform

Company: Fanatics

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design an online retail stock trading platform similar to Robinhood. Cover: user onboarding with KYC/AML and funding (e.g., ACH); real‑time balances; market data ingestion and streaming quotes; order submission/validation, risk checks, idempotency, and support for market/limit/stop orders; routing to market makers or exchanges and post‑trade processing with a clearing broker; portfolio and positions with cost basis, PnL, and corporate actions; data model and storage for orders, trades, accounts, and ticks; service decomposition and APIs (sync vs. async), message queues, and event sourcing; consistency and latency guarantees for order state vs. portfolio views; scale and reliability at market open surges, backpressure, HA/DR, and failure modes; observability, auditing/compliance logging, and incident fallbacks (e.g., market data outage); and how you would extend the design to support options or crypto later.

Quick Answer: This question evaluates a candidate's competencies in designing scalable, low-latency retail trading systems, covering system architecture, order routing and state management, market data ingestion, cash and position ledger consistency, risk controls, and compliance/observability.

Fanatics logo
Fanatics
Sep 6, 2025, 12:00 AM
Software Engineer
Onsite
System Design
30
0

System Design: Retail Stock Trading Platform (Robinhood-like)

Context and Assumptions

Design a mobile-first, retail stock trading platform with a clearing broker partner for custody and settlement. U.S. equities settle on T+1. Start with cash accounts (no margin or options at launch), add options/crypto later. Assume 24/5 support for extended hours and a third-party market data vendor for SIP/top-of-book.

Requirements

  1. User Onboarding and Funding
    • KYC/AML: identity verification, sanctions screening, fraud checks, account opening with clearing broker.
    • Funding: ACH (Plaid or micro-deposits), wires, with holds and returns handling.
    • Account types: individual cash accounts now; margin/options later.
  2. Balances and Buying Power
    • Real-time cash balances: settled vs unsettled, withdrawals, holds.
    • Buying power calculations and guardrails.
  3. Market Data
    • Ingest vendor feeds (SIP, top-of-book), maintain symbol master.
    • Stream quotes to clients with throttling and coalescing.
  4. Orders
    • Submit/validate market, limit, stop (stop-market, stop-limit) orders.
    • Risk checks: buying power, symbol status (halts), duplicate prevention (idempotency), fat-finger checks.
    • Acknowledge, route to market makers/exchanges, and manage order state.
  5. Routing and Post-Trade
    • Route via SOR to market makers/exchanges.
    • Receive executions/drop copies; integrate with clearing broker for confirmation, allocation, and settlement.
  6. Portfolio and Positions
    • Positions and lots with cost basis (FIFO default), realized/unrealized PnL.
    • Corporate actions (splits, dividends, symbol changes, mergers) and DRIP.
  7. Data Model and Storage
    • Core entities: users, accounts, cash ledger, orders, executions, positions/lots, instruments, ticks, corporate actions.
    • OLTP for trading/ledger; streaming/event store for order/market data; time-series storage for ticks.
  8. Architecture and APIs
    • Service decomposition; synchronous vs asynchronous APIs.
    • Message queues, event sourcing, idempotency design.
  9. Consistency and Latency
    • Guarantees for order state vs portfolio views (strong vs eventual consistency).
    • Latency targets for quotes, order acks, fills.
  10. Scale, Reliability, and Failures
    • Market open surges; backpressure strategies.
    • HA/DR design, rate limits, circuit breakers.
    • Failure modes: market data outage, exchange issues, clearing delays.
  11. Observability and Compliance
    • Metrics, tracing, centralized logs.
    • Audit/compliance logging (immutable/WORM), SOX/SEC/FINRA considerations.
  12. Extensibility
    • How to add options (OPRA, OCC, risk/margin) or crypto (wallets, custody, 24/7).

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Fanatics•More Software Engineer•Fanatics Software Engineer•Fanatics System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.