Order Book
Aggregates DEX order books from multiple venues into a unified view to improve visibility of liquidity and enable cross-exchange trading, without assuming increased liquidity.
DEX Order Book Aggregation is the practice of aggregating price-level data from multiple DEX sources (on-chain order books or off-chain data feeds) into a single, standardized representation. It addresses data heterogeneity, latency, and potential duplicates. Key components include: 1) Data Collection: fetching order book data from multiple DEXs; 2) Data Standardization: normalizing fields like price, quantity, timestamp, and side; 3) Aggregation Logic: combining multiple sources using rules to construct a representative depth and top-of-book; 4) Data Delivery: delivering the aggregated view to clients or smart contracts (via oracles or on-chain feeds). Important caveats: aggregation does not automatically create liquidity; it improves visibility and potential routing, but liquidity depth depends on each venue's available liquidity, fees, and risk controls. The use of smart contracts for aggregation is not strictly required; many implementations are off-chain services feeding data to on-chain primitives when needed. Trade routing and execution may leverage this unified view but occur on respective exchanges, with consideration for cross-exchange settlement, slippage, and fee accounting.
graph LR
Center["Order Book"]:::main
Rel_account_abstraction["account-abstraction"]:::related -.-> Center
click Rel_account_abstraction "/terms/account-abstraction"
Rel_decentralized_exchange_dex_front_running_protection["decentralized-exchange-dex-front-running-protection"]:::related -.-> Center
click Rel_decentralized_exchange_dex_front_running_protection "/terms/decentralized-exchange-dex-front-running-protection"
Rel_liquidity["liquidity"]:::related -.-> Center
click Rel_liquidity "/terms/liquidity"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 Knowledge Check
🧒 Explain Like I'm 5
Think of it as a transparent list on a chalkboard at an auction. One side lists people saying 'I want to buy at $10', and the other side lists people saying 'I want to sell at $11'. When those prices meet, a sale happens.