Orderbook & Matching Engine

Zeta v2 utilises a fully on chain orderbook and matching engine with similar operations to the Open Book DEX on Solana.

Depositing into Zeta for the first time requires the creation of a open orders account. This is done atomically in the first order you place on that market. (This will have a one time cost per market of ~0.024 SOL).

Orderbook constraints

The orderbook has enough space allocated to store a maximum of 455 orders per side (bid and ask). It uses a FIFO mechanism (first in first out).

If more than 455 orders are placed, the worst order (lowest bid or highest ask) placed on the orderbook will be booted off, and the corresponding order is cancelled for the user.

Last updated

#954: TGE

Change request updated