Skip to content

Architecture Overview

Duncan Parker edited this page Jul 17, 2025 · 3 revisions

QuantX Architecture

QuantX is built on a backend-first principle. All business logic—including data ingestion, storage, processing, and trading strategies—lives on the backend. The frontend is a presentation layer only.

Data Flow

  1. Backend:

    • Handles all data ingestion (market, user, etc.).
    • Runs all trading strategies.
    • Manages state, scheduling, deployment, and logging.
    • Serves data and events via websockets or Redis.
  2. Frontend (Electron/React):

    • Receives data streams from the backend.
    • Renders dynamic dashboards, controls, and visualizations.
    • Does not fetch data using React hooks or manage strategy logic.

Why Backend-First?

  • Security: Strategies and data remain server-side.
  • Performance: Heavy lifting is decoupled from UI.
  • Extensibility: Add new strategies or data sources without touching the frontend.

Communication

  • Websockets: For real-time updates (e.g., price feeds, execution logs).
  • Redis: For pub/sub or caching needs.

For frontend details, see Frontend Design. For backend details, see Backend Layer.

Clone this wiki locally