Real-Time Streams
Subscribe to live market data when you need venue updates with minimal latency.
Channels
Real-time subscriptions
Subscribe to live market data feeds when you need proxied venue updates with minimal latency.
JavaScript
// Subscribe to real-time order book updatesws.send(JSON.stringify({ op: "subscribe", channel: "orderbook", symbol: "BTC"}));
// Subscribe to real-time tradesws.send(JSON.stringify({ op: "subscribe", channel: "trades", symbol: "ETH"}));
// Subscribe to L4 orderbook diffs (Pro+, real-time only)// Messages are batched by block and include user wallet addressesws.send(JSON.stringify({ op: "subscribe", channel: "l4_diffs", symbol: "BTC"}));
// Subscribe to L4 order lifecycle events (Pro+, real-time only)// Streams order state changes (new, partial fill, filled, cancelled)ws.send(JSON.stringify({ op: "subscribe", channel: "l4_orders", symbol: "ETH"}));
// Subscribe to HIP-3 L4 channelsws.send(JSON.stringify({ op: "subscribe", channel: "hip3_l4_diffs", symbol: "km:US500"}));
ws.send(JSON.stringify({ op: "subscribe", channel: "hip3_l4_orders", symbol: "km:US500"}));
// Unsubscribews.send(JSON.stringify({ op: "unsubscribe", channel: "orderbook", symbol: "BTC"}));