@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / BookTop

Type Alias: BookTop

BookTop = object

Defined in: packages/sdk/src/orders.ts:232

Top of a binary market's resting book, in YES terms (raw quote units — the same scale as BinaryMarket.lastPrice). mid is (bestBid + bestAsk) / 2, null unless BOTH sides rest (a one-sided book has no meaningful mid).

Properties

bestBid

bestBid: string | null

Defined in: packages/sdk/src/orders.ts:234

Best (highest) resting bid price (raw); null when no bid rests.


bestAsk

bestAsk: string | null

Defined in: packages/sdk/src/orders.ts:236

Best (lowest) resting ask price (raw); null when no ask rests.


mid

mid: string | null

Defined in: packages/sdk/src/orders.ts:238

(bestBid + bestAsk) / 2, floored (raw); null unless BOTH sides rest.