@somnia-chain/markets-sdk / react / useLiveSpotOrderBook
Function: useLiveSpotOrderBook()
useLiveSpotOrderBook(
pool,depth?):SpotOrderBook
Defined in: packages/sdk/src/hooks.ts:255
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