Skip to main content

Import

import { Orderbook } from '@krono/core'

Usage

Call this when the orderbook instance is no longer needed. It disconnects the socket, clears all memory buffers (history, price maps), and removes all event listeners.
// When component unmounts or app closes
orderbook.destroy()

Return Type

void