This hook requires the
OrderbookProvider or AssetPairsProvider to be present in your component tree to provide the underlying AssetPairs instance.Import
Usage
Parameters
Initial data to hydrate the state immediately. Useful for SSR or restoring data from a persistent cache.
Return Type
State
The list of available trading pairs, filtered by
topN (liquidity) and sorted alphabetically by label.A lookup map for O(1) access to symbol data.
true whenever a fetch request is in flight.true once the first successful fetch has completed.Contains the error object if the last fetch attempt failed.
The current number of high-liquidity pairs being tracked.
Actions
Manually triggers a new fetch request from the Kraken API.
Case-insensitive search. Matches against
wsname (BTC/USD), altname (XBTUSD), displayLabel, and internal Kraken keys.Updates the liquidity filter. Note: If the state is already
loaded, changing this value triggers an automatic re-fetch.Wipes the current local state and resets status to
idle.Examples
Symbol Search
UsefindSymbol for efficient lookups across multiple identifier types.
Dynamic Liquidity Filtering
Change the number of tracked pairs on the fly using thesetTopN action.

