Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Financial Portfolio Dashboard

Design a trustworthy dashboard that normalizes balances and holdings from external providers and publishes fresh, reproducible portfolio metrics.

Problem statement

For this exercise, assume users connect read-only financial accounts from multiple external providers, including brokerage, market-data, and cryptocurrency APIs.

The system ingests cash balances, asset positions, security prices, and foreign-exchange rates; normalizes provider-specific identifiers and units; calculates each position's value, total portfolio value, and allocation by asset class; and serves a dashboard that clearly reports when every value was observed and calculated.

Provider APIs may use polling, webhooks, or bulk snapshots, and may rate-limit requests, return duplicate or corrected records, arrive out of order, or remain unavailable for hours. A published dashboard snapshot must pin the exact normalized account, price, and FX versions used so the same result is reproducible.

When some inputs are stale or incomplete, the service must expose that state instead of silently presenting the result as current.

Assume 5 million registered users, up to 50 provider integrations, 100 million connected accounts, and 500 million current positions. At peak, ingest 100,000 provider observations per second and serve 20,000 dashboard reads per second.

For healthy providers, 99% of accepted observations should appear in a published dashboard snapshot within five minutes, and a common dashboard read should complete within two seconds at p95. Retain immutable raw provider observations for 90 days and versioned normalized positions and metric snapshots for one year.

Accepted observations and published snapshots must survive a process or availability-zone failure. Trading, money movement, tax-lot accounting, personalized advice, provider onboarding, and active-active multi-region writes are outside scope.

What to build

  1. The system ingests versioned balances, positions, prices, and FX rates from configured external providers through polling, webhooks, or bulk snapshots.
  2. The system maps provider-specific accounts, assets, units, currencies, updates, and deletions into auditable canonical records without double counting retries.
  3. The system publishes reproducible per-user snapshots containing account balances, valued holdings, total portfolio value, and asset-class allocation.
  4. A user can load current and historical dashboard snapshots with source freshness, calculation version, and partial or stale-input warnings.

At scale

  • For this exercise, assume 5 million registered users, 100 million connected accounts across up to 50 provider integrations, and 500 million current positions.
  • For this exercise, assume peaks of 100,000 accepted provider observations per second and 20,000 dashboard reads per second.
  • For this exercise, make 99% of accepted observations from healthy providers visible in a published dashboard snapshot within five minutes and return a common dashboard read within two seconds at p95.
  • For this exercise, retain immutable raw observations for 90 days and versioned normalized positions and metric snapshots for one year; accepted observations and published snapshots survive one process or availability-zone failure.