> ## 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.

# Asset Pairs

> Configure trading pair metadata fetching and management.

The asset pairs configuration supports controlling how `Orderbook.Root` fetches and manages trading pair metadata from the Kraken API.

## Basic Configuration

```tsx theme={null}
import { Orderbook } from '@krono/kit'

export const App = () => {
  return (
    <Orderbook.Root
      config={{
        symbol: 'BTC/USD',
        assetPairs: {
          autoFetch: true,
          topN: 100
        }
      }}
    >
      {/* Components */}
    </Orderbook.Root>
  )
}
```

## Configuration Options

### autoFetch

Automatically fetch asset pair metadata when the component mounts.

**Type:** `boolean`

**Default:** `false`

```tsx theme={null}
<Orderbook.Root
  config={{
    symbol: 'BTC/USD',
    assetPairs: {
      autoFetch: true
    }
  }}
>
  {/* Components */}
</Orderbook.Root>
```

### topN

Limit stored asset pairs to the top N pairs.

**Type:** `number`

**Default:** `undefined` (all pairs)

```tsx theme={null}
<Orderbook.Root
  config={{
    symbol: 'BTC/USD',
    assetPairs: {
      topN: 50,
      autoFetch: true
    }
  }}
>
  {/* Components */}
</Orderbook.Root>
```

### debug

Enable logging for asset pairs operations.

**Type:** `boolean`

**Default:** `false`

```tsx theme={null}
<Orderbook.Root
  config={{
    symbol: 'BTC/USD',
    assetPairs: {
      autoFetch: true,
      debug: true
    }
  }}
>
  {/* Components */}
</Orderbook.Root>
```

## Related

<CardGroup cols={2}>
  <Card title="Performance" icon="gauge" href="/docs/kit/configuration/performance">
    Fine-tune update frequency with throttling and debouncing options.
  </Card>

  <Card title="History" icon="history" href="/docs/kit/configuration/history">
    Enable snapshot tracking and playback features for historical analysis and debugging.
  </Card>

  <Card title="Orderbook" icon="chart-candlestick" href="/docs/kit/configuration/orderbook">
    Configure the core orderbook behavior.
  </Card>

  <Card title="Overview" icon="cog" href="/docs/kit/configuration/overview">
    See all configuration options in one place with complete TypeScript types and defaults.
  </Card>
</CardGroup>
