Orbitra Prime
Trading intelligence
Every order ticket in Orbitra Prime — from a one-click market order to an RFQ block — resolves to ApexMatch primitives, with the same execution evidence for every user.
Deterministic native matching engine
ApexMatch is not an application deployed on a chain. It is a native market module of Orbitra L1: matching, cancellation, funding, margin deltas and settlement proofs share one atomic state transition. Same inputs, same fills, same state.
How it moves
The illustration follows one signed order through ingress, fair sequencing, the Aegis risk gate, price-time matching and clearing, until a QSE certificate marks it final. Each stage emits signed evidence, shown as the trace beneath the path.
The problem
Most venues run matching in one system and settlement in another. Orders are accepted by an application, matched in a private engine, then reconciled with custody and ledgers later. Every hop between those systems is a place where state can diverge, where ordering can be influenced and where a fill can exist before the collateral that backs it has moved.
Onchain venues that deploy a matching contract on a general-purpose chain inherit a different problem: the chain was never built for order books. Block space is contested by unrelated activity, ordering is shaped by fee auctions and every trade competes with the network for execution time.
ApexMatch removes both gaps. The engine is a deterministic protocol module, so a fill, its margin effect and its settlement are one indivisible event — observable, reproducible and final under QSE.
Operating sequence
Every order — manual, algorithmic or issued by a Cortex agent — follows the same path through the kernel.
The order arrives through a regional gateway as a signed intent with its limits attached. Signatures are verified in batches before sequencing.
Fair sequencing assigns a canonical position. Ordering follows declared rules, not fee bidding, so the queue cannot be bought.
Aegis pre-risk simulates the post-trade portfolio: margin, liquidation distance and policy limits. Orders that would breach a limit are rejected before they touch the book.
Price-time priority on ApexBook. Self-trade prevention, post-only and reduce-only semantics are enforced by the kernel itself.
Fills produce net deltas — positions, collateral, fees and funding — computed inside the same transition as the match.
VectorLanes executes the transition and a QSE quorum certificate finalizes it. The fill, its margin effect and its settlement proof become final together.
Architecture
ApexMatch is composed of small deterministic parts with explicit interfaces. Each can be observed, tested and replayed independently.
Gateways close to market participants accept signed orders, verify signatures in batches and forward them with receive timestamps.
Applies the declared ordering policy and produces the canonical input stream that every validator replays identically.
A synchronous call into Aegis that evaluates the order against the account’s portfolio risk graph and policy set.
Central limit order books with price-time priority, self-trade prevention and native support for RFQ and block workflows.
Computes position, collateral, fee and funding deltas for every fill and writes them in the same state transition.
Each stage emits signed records — receipt, sequence position, risk verdict, fill, delta — so any fill can be independently reconstructed.
Security and failure control
A matching engine must fail safely. ApexMatch is built so that the failure of one stage cannot produce a fill that the rest of the system does not recognize.
Across the three systems
Orbitra Prime
Trading intelligence
Every order ticket in Orbitra Prime — from a one-click market order to an RFQ block — resolves to ApexMatch primitives, with the same execution evidence for every user.
Orbitra L1
Settlement and compute
ApexMatch is a native market-services module of Orbitra L1. It executes on VectorLanes and its transitions are finalized by QSE.
Orbitra Realm
Applications and commerce
Applications in Orbitra Realm call native market primitives directly from NexusWASM contracts, so a wallet, a game or a treasury tool can offer real order books without building a venue.
Value
Specifications
Terminology