WS /ws/orderbook
WS

wss://api.xrpl.to/ws/orderbook

DEX orderbook depth streaming

AuthNone — works without a key

Request

WSwss://api.xrpl.to/ws/orderbook
QueryValueDescription
base_currencycurrency code/hex or XRP (required)
base_issuerissuer address (omit for XRP)
quote_currencycurrency code/hex or XRP (required)
quote_issuerissuer address (omit for XRP)
limitint 1-100 (default: 20, depth per side)
wscat -c 'wss://api.xrpl.to/ws/orderbook'
A stream: connect with the code on the right, or wscat.

Response

Messages you receive
initial: { type: "snapshot", pair, bids[], asks[], ledger }; updates: { e: "depth", E, s, b[], a[], l }

What it does

DEX orderbook depth streaming

Notes
Params are base_currency/quote_currency — the REST-style base={md5} form is NOT supported and closes the socket (4020)
OpenAPI