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