Skip to main content
The AssetPairsProvider initializes the AssetPairs service. It allows hooks like useAssetPairs to access metadata about trading symbols (icons, display names, liquidity ranking) anywhere in your app.

Import

import { AssetPairsProvider } from '@krono/hooks'

Usage

<AssetPairsProvider config={{ autoFetch: true, topN: 100 }}>
  <SymbolSelector />
</AssetPairsProvider>

Props

config
AssetPairsConfig
required
Configuration for the asset fetching service.
children
ReactNode
Components that need access to symbol metadata.