This hook requires the
OrderbookProvider to be present in your component tree to provide the underlying Orderbook instance.Import
Usage
Parameters
If true, the hook will unsubscribe from the data pipeline and stop updating state. Useful for optimizing performance in background tabs or collapsed UI elements.
Return Type
Returns anOrderbookData object containing:
State
An array of ask price levels (sorted ascending).
An array of bid price levels (sorted descending).
The absolute difference between the best ask and best bid.
The spread expressed as a percentage of the best ask.
The highest cumulative total across both sides, used for calculating depth bar widths.
The unix timestamp (ms) of when this update was generated.

