Readonly
publicWhen creating an OrderBookRealTimeClient, a public client is automatically created and can be used based to make additional public requests if needed.
Loads initial state from REST API and begin listening to orderbook updates.
Optional
marketsResponse: RestResponseGetMarketstypedoc Reference Documentation
Stop the order book client, and reset internal state. Call this when you are no longer using the client, to release memory and network resources.
typedoc Reference Documentation
typedoc Reference Documentation
Load the current state of the level 1 orderbook for this market.
Optional
tickSize: bigintMinimum price movement expressed in pips (10^-8), defaults to market setting
Load the current state of the level 2 orderbook for this market.
Optional
limit: numberTotal number of price levels (bids + asks) to return
100
Optional
tickSize: bigintMinimum price movement expressed in pips (10^-8), defaults to market setting
Orderbook API client
See
Example