Design the front-end architecture for a retail cryptocurrency trading web app (like a spot exchange).
Assume the product needs these core screens and behaviors:
-
Market page
: price chart, real-time
order book
, recent trades, and a
place order
form (limit/market).
-
Portfolio / orders
: balances, open orders, order history.
-
Auth
: login, session management, optional 2FA prompts.
-
Real-time updates
: order book/trades via WebSocket (or similar).
-
Must be
responsive
, accessible, and handle poor networks gracefully.
Discuss and justify:
-
The
technology stack
(framework, language, build tool, styling, charting, state management).
-
The overall
frontend system design
(routing, page composition, state/data layers, WebSocket layer, caching, error handling).
-
The key
reusable components
you would build (design system + trading-specific components) and how you would implement them.
-
How you would ensure
performance
(rendering, large lists like order book),
testability
(unit/integration/e2e), and
security
(XSS/CSRF/token handling).