Core Architecture
Von Neumann Architecture (Design Principle) The foundational design principle behind ClyptQ’s engine. Just as the Von Neumann architecture separates stateless computation (CPU) from stateful memory (RAM) connected by a control unit, ClyptQ separates stateless Operators from the stateful StatefulGraph, connected by the TradingDriver. This separation is what makes Research = Backtest = Live possible. Architecture Overview → TradingSpec The complete strategy definition: data + strategy + execution mode. Changingmode is all it takes to go from backtest to live. Full Reference →
TradingDriver
The runtime orchestrator. Reads a TradingSpec, computes warmup, and runs the tick loop. Architecture Overview →
StatefulGraph
A DAG execution engine where operators are stateless and the graph manages all state via RollingBuffers. Deep Dive →
Operator
A stateless computation unit that receives TaggedArrays and returns a TaggedArray. ClyptQ ships operators across 14 roles. Operator System →
BaseOperator
The abstract base class all operators inherit from. Requires implementing compute() and declaring a role. Protocol Reference →
OperatorRole
One of 14 roles (ALPHA, INDICATOR, TRANSFORM, OPTIMIZER, etc.) that categorizes what an operator does. Role Table →
Data Concepts
FIELD Market data namespace:FIELD:exchange:market:ohlcv:field. The only way operators receive market data. FIELD & STATE →
STATE
Portfolio data namespace: STATE:exchange:market:key. Updated by the executor after each fill. FIELD & STATE →
TaggedArray
4-field data structure (value, exists, valid, updated) that distinguishes missing data from invalid data. Why 4 Fields? →
RollingBuffer
Pre-allocated circular buffer that stores historical data for each operator input. Prevents lookahead by only exposing the declared lookback window. Lookback Buffers →
SymbolSourceMap
Maps symbols to exchanges: {"binance:futures": ["BTC/USDT", "ETH/USDT"]}. Determines which symbols appear in each FIELD source. TradingSpec →
AxisMeta
Frozen metadata about the symbol dimension — symbol names, exchange sources, index mappings. TaggedArray →
Input
Declaration of what data an operator needs: Input(source, timeframe, lookback). Tells the graph how to set up buffers. StatefulGraph →
Forward-Fill
When no new data arrives for a FIELD source, the last known value is reused with updated=False. FIELD & STATE →

