Decentralized exchanges do not typically run on an order book model. Instead liquidity providers allocate capital in specific price ranges that follow a determininistic price curve ratio and a simple formula is used to rebalance as traders swap between token pairs.