@somnia-chain/markets-sdk


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

Interface: BinarySellQuote

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

A market SELL that unwinds an outcome position, shaped to feed straight into trader.placeOrder({ pool, side, price: yesPrice, quantity, orderType: ORDER_TYPE.MARKET }). All values RAW units. See quoteBinaryStakeOverBook for the family's full mental model.

Properties

side

side: BinarySellSide

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

The sell side quoted ("SELL_YES" | "SELL_NO").


yesPrice

yesPrice: bigint

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

Protective floor in YES terms (raw, tick-aligned) — what placeOrder takes.


limitPrice

limitPrice: bigint

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

The same protective floor in the sold outcome's OWN terms (raw) — the cushioned best bid. Display this.


quantity

quantity: bigint

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

Outcome-token quantity to sell (raw, lot-aligned) — the size submitted.


fillableQuantity

fillableQuantity: bigint

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

How much of quantity the resting bids at or above the floor can absorb (raw, ≤ quantity). The IOC cancels the rest unfilled — when this is short of quantity, show the user a partial-unwind warning instead of implying the whole position exits.


estProceeds

estProceeds: bigint

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

Collateral proceeds if fillableQuantity fills at the resting bids' own prices (raw, rounded down) — an estimate: bids can churn between the quote and execution.