@somnia-chain/markets-sdk / index / BookTop
Type Alias: BookTop
BookTop =
object
Defined in: packages/sdk/src/orders.ts:348
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:350
Best (highest) resting bid price (raw); null when no bid rests.
bestAsk
bestAsk:
string|null
Defined in: packages/sdk/src/orders.ts:352
Best (lowest) resting ask price (raw); null when no ask rests.
mid
mid:
string|null
Defined in: packages/sdk/src/orders.ts:354
(bestBid + bestAsk) / 2, floored (raw); null unless BOTH sides rest.