Skip to main content

StreamL2Book gRPC Method

Streams real-time aggregated orderbook data with configurable price levels.

Updated on
Oct 09, 2026
Full reference

Field definitions, proto messages, example updates, and comparisons for this stream live on the L2 Order Book dataset page. This page covers the method signature and client snippets.

Please note that this method is metered based on data consumption at 0.0165 MB = 10 API credits.

Parameters

coin
string

Trading pair symbol (e.g., 'BTC', 'ETH')

n_levels
uint32

Number of price levels to return (default: 20, max: 100)

n_sig_figs
uint32

Optional: Number of significant figures for price bucketing (2-5)

mantissa
uint64

Optional: Bucketing mantissa multiplier (1, 2, or 5)

Returns

stream
stream<L2BookUpdate>

Stream of L2BookUpdate messages containing orderbook snapshots at each block

coin
string

Trading pair symbol

time
uint64

Block timestamp in milliseconds

block_number
uint64

Block number

bids
array<L2Level>

Array of bid price levels, each containing px (price), sz (cumulative size), and n (order count)

asks
array<L2Level>

Array of ask price levels, each containing px (price), sz (cumulative size), and n (order count)

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free