SamQuant

Clear boundaries

Architecture

Each layer owns one job and exposes a small, testable interface.

01

System flow

Validated bars become strategy targets, delayed orders, portfolio history, and risk metrics.

  • Market data
  • Strategies
  • Execution engine
  • Portfolio
  • Analytics
  • Interfaces

02

One source of truth

The Next.js application renders typed API results. It does not calculate financial metrics or strategy signals.

Streamlit and FastAPI share the same application service, which keeps their behavior aligned.

03

Extension points

A new strategy returns target weights and indicators. The engine remains unchanged because it depends on targets rather than a concrete strategy class.