@somnia-chain/markets-sdk / react / useLiveSpotOrderBook
Function: useLiveSpotOrderBook()
useLiveSpotOrderBook(
pool,depth?):SpotOrderBook
Defined in: hooks.ts:234
The locally-materialized resting book of a spot pool, updating the moment an order event lands — no round-trips, no refetch interval. Watches the pool while mounted.
Parameters
pool
string | undefined
depth?
number = 12