ParabolicParabolicDOCS
Trading

Offchain Orderbook

Sub-100ms central limit order book for fast-moving sports markets.

A central limit order book (CLOB) maintained offchain for sub-100ms performance. Sports events move fast — a single NFL play can shift probability 15% in under 3 seconds.

Order types

Limit — Specify price + size. Rests on book until filled.

Market — Execute immediately at best price. Walks the book.

Reduce-Only — Can only reduce a position. Used for stop-losses.

Matching flow
  1. 1
    User signs order intent with embedded wallet
  2. 2
    API Gateway validates signature + margin
  3. 3
    Matching Engine checks risk via Risk Engine
  4. 4
    Match found → trade executed, positions updated
  5. 5
    Trade added to settlement batch queue
  6. 6
    Every ~10s, batch submitted on-chain to Clearinghouse

Why offchain? On-chain orderbooks on Base would add ~2s latency, gas per order, and MEV/frontrunning risk. Mitigation: all trades published to append-only log + periodic Merkle root commitments on-chain.

On this page