Real-Time Streams

Subscribe to live market data when you need venue updates with minimal latency.

Mode
Live only
For
Streaming consumers

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 updates
ws.send(JSON.stringify({
op: "subscribe",
channel: "orderbook",
symbol: "BTC"
}));
// Subscribe to real-time trades
ws.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 addresses
ws.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 channels
ws.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"
}));
// Unsubscribe
ws.send(JSON.stringify({
op: "unsubscribe",
channel: "orderbook",
symbol: "BTC"
}));

Keep exploring WebSocket