@somnia-chain/markets-sdk / index / BinaryOrderBook
Interface: BinaryOrderBook
Defined in: packages/sdk/src/orders.ts:292
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: packages/sdk/src/orders.ts:297
Resting YES bids, best (highest price) first — raw collateral units per whole outcome token.
yesAsks
yesAsks:
BookLevel[]
Defined in: packages/sdk/src/orders.ts:299
Resting YES asks, best (lowest price) first.
noBids
noBids:
BookLevel[]
Defined in: packages/sdk/src/orders.ts:301
NO bids derived from the YES asks (price = 1 − yesPrice), best (highest) first.
noAsks
noAsks:
BookLevel[]
Defined in: packages/sdk/src/orders.ts:303
NO asks derived from the YES bids (price = 1 − yesPrice), best (lowest) first.