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

Call this method to start the connection sequence. It will open the socket, subscribe to the channel, and request the initial snapshot.
const orderbook = new Orderbook({ symbol: 'BTC/USD' })

await orderbook.connect()

Return Type

Promise<void>
Returns a promise that resolves when the subscription is successfully confirmed by the Kraken WebSocket API.