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

# OnRawDataUpdate

> Subscribe to raw, unthrottled data.

## Import

```ts theme={null}
import { Orderbook } from '@krono/core'
```

## Usage

Triggers immediately upon receiving a message from Kraken.

<Warning>
  This can fire hundreds of times per second. Use `onData` for UI performance unless you specifically need the rawest possible feed.
</Warning>

```ts theme={null}
orderbook.onRawDataUpdate((data) => {
  // Handle raw update
})
```

## Parameters

### callback

`(data: OrderbookData[]) => void`

The function to execute when new raw data is available.

## Return Type

```ts theme={null}
void
```
