@somnia-chain/markets-sdk


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

Function: quoteBinaryOrderOverBook()

quoteBinaryOrderOverBook(book, side, quantity, oneCollateral): BinaryOrderQuote

Defined in: packages/sdk/src/derivedReads.ts:104

Walk the live book crossing the opposite side for a market order of quantity on side — the pure kernel behind client.quoteBinaryOrder. oneCollateral = 10^quoteDecimals (full collateral = a share worth 1).

Parameters

book

BinaryOrderBook

side

BinarySide

quantity

bigint

oneCollateral

bigint

Returns

BinaryOrderQuote