Skip to main content
The SDK provides two standalone WebSocket clients for real-time market data. Both require no wallet or private key — they are read-only data feeds.

KuruFrontendOrderbookClient

The frontend orderbook client (orderbook_ws) streams full L2 snapshots followed by incremental updates. Prices and sizes are pre-normalized to human-readable Decimal values.

Usage

FrontendOrderbookUpdate fields

You can also subscribe via KuruClient instead of instantiating the client directly:

ExchangeWebsocketClient

The exchange WebSocket client (exchange_ws) streams incremental order book deltas in a Binance-compatible format. Unlike the frontend client, it does not send full snapshots — you must maintain a local order book.

Update types

DepthUpdate — standard depth update: MonadDepthUpdate — Monad-specific extension with blockchain state:

Usage

A size of 0 in a delta means the price level should be removed from your local book. Always apply delta updates in sequence using the U/u IDs to detect gaps.

Comparison