@somnia-chain/markets-sdk / index / BinaryOrderBook
Interface: BinaryOrderBook
Defined in: reads.ts:57
Both books for a market, 4-sided. NO levels are the YES book inverted into NO terms (price = 1 − yesPrice), matching BinaryPool's pricing.
Properties
yesBids
yesBids:
BookLevel[]
Defined in: reads.ts:62
Resting YES bids, best (highest price) first — raw collateral units per whole outcome token.
yesAsks
yesAsks:
BookLevel[]
Defined in: reads.ts:64
Resting YES asks, best (lowest price) first.
noBids
noBids:
BookLevel[]
Defined in: reads.ts:66
NO bids derived from the YES asks (price = 1 − yesPrice), best (highest) first.
noAsks
noAsks:
BookLevel[]
Defined in: reads.ts:68
NO asks derived from the YES bids (price = 1 − yesPrice), best (lowest) first.