Documentation Index
Fetch the complete documentation index at: https://krono.fabianpiper.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.
Related
Orderbook Core
Explore the underlying class logic and event emitters.
useOrderbookHistory
Access historical orderbook data.
useOrderbookStatus
Check if the data is currently “live” or “disconnected”.
Kraken API
Explore the
book channel streams level 2 order book docs.
