What Is an On-Chain Order Book?
An order book lists every open buy and sell order for a market. On an on-chain order book, those orders and the matching between them live on a blockchain instead of a company's private server.
By Phoenix ResearchUpdated November 13, 2026
On this page
Three ways decentralized exchanges price trades
| Model | How prices are set | Examples of the model |
|---|---|---|
| On-chain order book | Buyers and sellers post limit orders; trades match price-first, then time | Phoenix |
| AMM pool | A formula prices trades against a pool of tokens | Spot DEX pools |
| Oracle-priced pool | Trades fill at an external oracle price against a shared liquidity pool | Some perp DEXs |
How Phoenix's order book works
Phoenix runs on Solana and combines two kinds of liquidity in one book:
- FIFO order book: standard limit orders, filled by best price first, then by time.
- Spline liquidity: market makers publish a price curve instead of hundreds of separate orders. Moving a spline uses far less compute than a transaction that moves many individual orders, so market makers can refresh quotes more often.
An incoming order fills against the best price across both. At the same price, spline liquidity fills first.
What this changes for you
- Every order and fill is recorded on Solana, so the book you trade against is the book anyone can inspect.
- You trade from your own account, and the exchange never holds your funds.
- Limit, post-only, market, TWAP, take-profit and stop-loss orders are all available.
How a limit order book works
Buyers post bids (the price they'll pay) and sellers post asks (the price they'll accept). The highest bid and the lowest ask form the spread. A market order fills against the best available prices; a limit order either fills immediately at your price or better, or rests on the book until someone trades against it.
| Term | Meaning |
|---|---|
| Bid | An order to buy at a price |
| Ask | An order to sell at a price |
| Spread | The gap between the best bid and best ask |
| Depth | How much size is available near the best prices |
| Maker | An order that rests on the book and adds liquidity |
| Taker | An order that fills against resting liquidity |
On-chain vs. off-chain order books
Many exchanges run their order book on private servers and only settle balances on-chain, if at all. On Phoenix, the order book and the matching both run on Solana, so placements, cancellations and fills are recorded on-chain and can be verified by anyone.
Matching rules on Phoenix
- Price first: the best price fills first.
- Time second: at the same price, the earliest FIFO order fills first.
- At the same price, spline liquidity fills before FIFO orders, but splines can't skip a better FIFO price.
- Self-trade prevention lets a trader choose what happens if an order would match their own: abort, cancel the resting order, or reduce the incoming one.
Why spline updates matter
When external prices move, stale quotes on the book can be picked off by faster traders. Cheap spline updates shorten the time a quote stays stale. They don't guarantee transaction ordering.
Questions
Is Phoenix an AMM?
No. Phoenix is an order book exchange. Prices come from orders on the book, not from a pool formula.
What does FIFO mean?
First in, first out: among orders at the same price, the one placed first fills first.
Where can I read the technical details?
See Matching Engine in the docs.
Do makers and takers pay different fees?
Yes. Phoenix's base rates are 3.5 bps for takers and 0.5 bps for makers, and FX markets charge a tenth of that. Referral codes can lower them further. Details are on the trading fees docs page.
Can anyone see the Phoenix order book?
Yes. It's on-chain and also available through the API and WebSocket.
What is a post-only order?
A limit order that only adds liquidity. It won't execute immediately as a taker.
What is spline liquidity?
Liquidity that a spline trader publishes as price regions around a mid price, which the engine turns into visible price levels. See Spline Liquidity.
Does an on-chain order book mean slower trading?
Orders are processed at Solana's transaction speed. Network congestion can delay transactions; see the Risk Warning in the docs.