Skip to main content

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.

Import

import { Orderbook } from '@krono/core'

Usage

Triggers immediately upon receiving a message from Kraken.
This can fire hundreds of times per second. Use onData for UI performance unless you specifically need the rawest possible feed.
orderbook.onRawDataUpdate((data) => {
  // Handle raw update
})

Parameters

callback

(data: OrderbookData[]) => void The function to execute when new raw data is available.

Return Type

void