Skip to main content

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.