@somnia-chain/markets-sdk / react / useLiveBinaryOrderBook
Function: useLiveBinaryOrderBook()
useLiveBinaryOrderBook(
pool,depth?):BinaryOrderBook
Defined in: packages/sdk/src/hooks.ts:217
The locally-materialized resting book of a binary pool (4-sided), updating the moment an order event lands — no round-trips, no refetch interval. Watches the pool while mounted.
Parameters
pool
string | undefined
depth?
number = 10