Skip to main content

Import

import { Orderbook } from '@krono/core'

Usage

Get or set the trading symbol.
Setting this property triggers a reset. The connection will automatically reconnect to the new symbol, and all local history/data will be cleared.
// Get
const currentPair = orderbook.symbol

// Set (Triggers reconnects if active)
orderbook.symbol = 'ETH/USD'

Type

string