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
bids
bids:
OrderbookLevel[]
Buy offers.
Inherited from
lastPriceNo
lastPriceNo:
number
Last no price, in cents.
Inherited from
lastPriceYes
lastPriceYes:
number
Last yes price, in cents.
Inherited from
marketId
marketId:
string
Market id.
Inherited from
spread
spread:
number
Difference between the best ask and the best bid, in cents.
Inherited from
updatedAt
updatedAt:
string
Update instant (ISO 8601).