@somnia-chain/markets-sdk


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

Interface: BinaryStakeQuote

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

A stake-sized market BUY, shaped to feed straight into trader.placeOrder({ pool, side, price: yesPrice, quantity, orderType: ORDER_TYPE.MARKET }). All values RAW units.

Properties

side

side: BinaryBuySide

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

The buy side quoted ("BUY_YES" | "BUY_NO").


yesPrice

yesPrice: bigint

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

Protective limit in YES terms (raw, tick-aligned) — what placeOrder takes. The deepest level the sweep touched plus the slippage cushion.


limitPrice

limitPrice: bigint

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

The same protective limit in the traded outcome's OWN terms (raw) — equals yesPrice for BUY_YES, oneCollateral − yesPrice for BUY_NO. Display this.


quantity

quantity: bigint

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

Outcome-token quantity bought (raw, lot-aligned) — the payout if this side wins.


escrow

escrow: bigint

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

Collateral the order escrows (raw) — quantity × limitPrice, rounded up. The max loss; never above the stake.