The Stellar Decentralized Exchange (DEX) stores the order book on-ledger, settles transactions on-ledger, and has matchmaking built into the protocol.