Skip to main content

Usage

Triggers whenever a new snapshot is added to the historical data array.
orderbook.onHistoryUpdate((history) => {
  console.log('History length:', history.length)
})

Parameters

callback

(history: OrderbookData[]) => void The function to execute when new history updates.

Return Type

void