@somnia-chain/markets-sdk / index / quoteBinaryOrderOverBook
Function: quoteBinaryOrderOverBook()
quoteBinaryOrderOverBook(
book,side,quantity,oneCollateral):BinaryOrderQuote
Defined in: derivedReads.ts:76
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
side
quantity
bigint
oneCollateral
bigint