xrpl.to now uses embedded non-custodial wallets. Xaman, Crossmark & GEM Wallet login is no longer supported.Now using embedded wallets. Xaman, Crossmark & GEM no longer supported.
Insights

XRPL Order Book & Market Depth

The XRPL CLOB is a fully on-chain order book. Every bid, every ask, every order is public ledger data. Here is how to read it and use it for better trades.

What Is the Order Book?

The Central Limit Order Book (CLOB) is the original trading mechanism of the XRPL DEX. It works exactly like a stock exchange order book: buyers place bids at prices they are willing to pay, sellers place asks at prices they are willing to accept, and trades execute when prices cross.

Unlike CEX order books (which are internal databases), the XRPL order book lives entirely on the ledger. Every offer is a ledger object that anyone can inspect. This transparency means no hidden orders, no phantom liquidity, and no order book spoofing.

Key Concepts

Bid (Buy Side)

Orders from buyers willing to purchase at a specific price or lower. The highest bid is the best price a seller can get right now.

Ask (Sell Side)

Orders from sellers willing to sell at a specific price or higher. The lowest ask is the best price a buyer can get right now.

Spread

The gap between the best bid and best ask. A tight spread (small gap) indicates healthy liquidity. A wide spread means low liquidity and higher trading costs.

Depth

The total volume of orders at each price level. Deep order books can absorb large trades without significant price impact. Shallow books move dramatically on even small trades.

Reading the Depth Chart

On each token page on XRPL.to, the order book shows cumulative depth on both sides. Here is what to look for:

  • Symmetric depth — roughly equal buy and sell volume indicates a balanced market
  • Heavy bid side — more buyers than sellers, potentially bullish. Strong buy support below current price
  • Heavy ask side — more sellers than buyers, potentially bearish. Large sell walls above current price
  • Thin depth — low total volume on both sides. Expect high slippage on any significant trade
  • Gaps — large price gaps between orders indicate low liquidity and potential for sharp price moves

CLOB + AMM Combined

Since XLS-30d, the XRPL DEX combines CLOB orders with AMM pool liquidity. When you trade, the protocol automatically checks both venues and routes your order for the best price. This means the effective market depth is deeper than what the order book alone shows.

Check the AMM Pools page to see pool liquidity alongside order book data.

Slippage and Market Impact

Slippage is the difference between the expected price and the actual execution price. It increases with trade size relative to available depth. On the XRPL:

  • Small trades (relative to depth) execute at or very near the best price
  • Large trades consume multiple price levels, resulting in worse average prices
  • Use limit orders to control your maximum price and avoid unexpected slippage
  • The swap page shows estimated slippage before you confirm a trade

Using Order Book Data via API

The XRPL.to API provides real-time order book data for every trading pair. Developers can use this data for:

  • Building custom depth charts and trading interfaces
  • Monitoring spread changes for arbitrage opportunities
  • Setting up alerts when depth exceeds or drops below thresholds
  • Backtesting trading strategies against historical order book snapshots

Start Trading

View live order books and trade on the XRPL DEX.