This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-predictions/realtime / OrderbookUpdate

OrderbookUpdate ​

Orderbook update received on predictionsTopics.orderbook: the same format as Orderbook (markets.getOrderbook) plus the update instant. It can be a snapshot (meta.kind === 'snapshot', only in sequenced mode) or a change: the SDK does not apply deltas, see the "Live orderbook" flow.

Extends ​

Properties ​

asks ​

asks: OrderbookLevel[]

Sell offers.

Inherited from ​

Orderbook.asks


bids ​

bids: OrderbookLevel[]

Buy offers.

Inherited from ​

Orderbook.bids


lastPriceNo ​

lastPriceNo: number

Last no price, in cents.

Inherited from ​

Orderbook.lastPriceNo


lastPriceYes ​

lastPriceYes: number

Last yes price, in cents.

Inherited from ​

Orderbook.lastPriceYes


marketId ​

marketId: string

Market id.

Inherited from ​

Orderbook.marketId


spread ​

spread: number

Difference between the best ask and the best bid, in cents.

Inherited from ​

Orderbook.spread


updatedAt ​

updatedAt: string

Update instant (ISO 8601).