{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: BinaryPnlFill

Defined in: units.ts:97

One account-perspective fill for computeBinaryPnl: which outcome, how many tokens, at what raw YES-terms price, and whether the account BOUGHT.

Properties

outcomeIndex

outcomeIndex: number

Defined in: units.ts:99

0 = YES, 1 = NO.


isBuy

isBuy: boolean

Defined in: units.ts:101

True = the account bought (added) this outcome; false = sold (reduced).


quantity

quantity: string | bigint

Defined in: units.ts:103

Fill quantity, raw outcome-token units (decimal string or bigint).


price

price: string | bigint

Defined in: units.ts:105

Fill price for the fill's own outcome, raw quote units (0..10^decimals).