Trading Commerce Ecosystem
ClyptQ is a Trading Commerce platform — a marketplace where quantitative strategies are independently verified, cross-exchange validated, and deployed with trust between Builders and Traders.For Builders
Production infrastructure, same code from research to live, revenue via marketplace
Marketplace
Independent backtest verification, cross-exchange validation, platform-computed metrics
For Traders
Evaluate verified strategies, one-click deploy, built-in safety features
The Architecture Behind the Architecture
When we set out to build ClyptQ, we asked a fundamental question: what is the simplest possible architecture that makes Research = Backtest = Live not just possible, but inevitable? The answer came from computer science fundamentals. Every computer built since 1945 follows the Von Neumann architecture — a design that separates stateless computation (the CPU) from stateful storage (RAM), connected by a control unit that orchestrates the fetch-decode-execute cycle. This separation is why the same program can process data from any source — disk, network, keyboard — without changing a single instruction. ClyptQ applies the same principle to quantitative trading:
This is not a metaphor — it is the actual design principle. Operators are deliberately stateless so that the same
compute() call produces identical results regardless of where data originates. The StatefulGraph deliberately owns all state so that buffer management, warmup, and routing are handled in one place. The TradingDriver deliberately follows a tick loop (fetch data, execute graph, update state) because that pattern guarantees deterministic execution across modes.
This is also the key to understanding Research = Backtest = Live. Just as the same CPU executes the same instruction set whether data comes from an SSD, RAM, or a network socket, ClyptQ operators execute identically whether data comes from Parquet files (backtest), WebSocket feeds (live), or simulated streams (paper). The computation layer does not know — and does not need to know — where its data originates.
The 4-Layer Architecture
Layer 1: TradingSpec (Configuration)
Everything starts with a TradingSpec — a declarative configuration that defines the complete strategy:Layer 2: TradingDriver (Orchestrator)
The driver reads the spec and manages the entire lifecycle:What from_spec() does
- Expands specs — Resolves symbol mappings, observation specs, account configurations
- Computes warmup — Traces the graph backward to find minimum ticks needed
- Creates state — Initializes
TradingStatewith cash, positions, margin - Creates executor —
BacktestFactoryfor backtest/paper,LiveFactoryfor live - Loads data — Parquet for historical, WebSocket for live
What each tick does
Execution modes
The graph and operators are identical across all modes. Only the data source and fill engine change. See Code Parity for why this matters.
Layer 3: StatefulGraph (Computation Engine)
The StatefulGraph is a DAG of operators: Market data enters via FIELD, portfolio state enters via STATE. All data flows as TaggedArrays through RollingBuffers. Operators execute in topological order.Layer 4: Executor (Fill Engine)
The executor converts graph outputs into fills:What Changes Per Mode
Everything above the line is identical. Only the data source and fill engine change — controlled by
mode="backtest" vs "paper" vs "live".
Next Steps
FIELD & STATE
How market data and portfolio state flow through the graph
StatefulGraph
DAG execution, topological ordering, warmup calculation
TradingSpec
Complete configuration hierarchy reference
Operator System
Operators across 14 roles

