wss://api.xrpl.to/ws/orderbook
DEX orderbook depth streaming
Request
wss://api.xrpl.to/ws/orderbook| Query | Value | Description |
|---|---|---|
| base_currency | currency code/hex or XRP (required) | |
| base_issuer | issuer address (omit for XRP) | |
| quote_currency | currency code/hex or XRP (required) | |
| quote_issuer | issuer address (omit for XRP) | |
| limit | int 1-100 (default: 20, depth per side) |
wscat -c 'wss://api.xrpl.to/ws/orderbook'
Response
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)