hard

Design a Stock Portfolio Manager

Design a stock portfolio management application. Include portfolio and position tracking, order placement (market, limit, stop), real-time market data integration, and profit-and-loss calculation.

Suggested time: 45 minutes

Loading the workspace...

About this problem

A stock portfolio manager combines order execution, real-time market data, and P&L calculation. The hardest part is ensuring atomic order execution while concurrent market data updates stream in.

What your design needs to cover

  • Place Orders and Execute Trades

  • Track Positions and Portfolio Holdings

  • Receive Real-Time Market Data

  • Calculate Profit and Loss

Key challenges the editorial covers

Learn from other designs

Related problems

Guides