Before You Dive In
ClyptQ has five core concepts that appear everywhere — in quickstart code, tutorials, and engine documentation. This page gives you a quick mental model so nothing feels unfamiliar.1. TradingSpec
The complete strategy definition — what data to use, what computation to run, how to trade. A single Python object that captures everything:mode is all it takes to go from backtest to live. The rest stays identical.
Full Reference
Every field in the TradingSpec hierarchy
2. StatefulGraph
Strategies are DAGs (Directed Acyclic Graphs) of operators. You add nodes and connect them — the graph handles execution order, buffering, and state:Deep Dive
Topological execution, buffer setup, warmup calculation
3. FIELD & STATE
Two data namespaces power every strategy:
FIELD flows forward (prices into the graph). STATE flows backward (portfolio state after fills back into the graph).
Full Protocol
FIELD format, STATE keys, forward-fill behavior, multi-venue routing
4. TaggedArray
Every piece of data flowing through the graph is a TaggedArray — a 4-field structure:
This lets operators handle missing symbols, warmup periods, and multi-exchange gaps without special-case code.
Why 4 Fields?
Hierarchical gate structure, merge operations, factory methods
5. Operators
Stateless computation units that receive TaggedArrays and return TaggedArrays. Every operator has arole that describes what it does:
ClyptQ ships prebuilt operators. You can also create custom ones by inheriting from
BaseOperator:
Operator Protocol
The compute() interface, roles, and custom operator patterns
Browse Operators
Indicators, signals, transforms, metrics, and more
How They Connect
TradingSpec defines the strategy. TradingDriver runs it tick-by-tick. Each tick, FIELD delivers market data and STATE delivers portfolio state to Operators in the StatefulGraph. Operators process TaggedArrays and produce trading intentions that the Executor fills.Next Steps
Quickstart
Build and backtest your first strategy
Architecture Overview
The 4-layer architecture in detail

