@somnia-chain/markets-sdk / index / BinaryPnlFill
Interface: BinaryPnlFill
Defined in: packages/sdk/src/units.ts:214
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: packages/sdk/src/units.ts:216
0 = YES, 1 = NO.
isBuy
isBuy:
boolean
Defined in: packages/sdk/src/units.ts:218
True = the account bought (added) this outcome; false = sold (reduced).
quantity
quantity:
string|bigint
Defined in: packages/sdk/src/units.ts:220
Fill quantity, raw outcome-token units (decimal string or bigint).
price
price:
string|bigint
Defined in: packages/sdk/src/units.ts:222
Fill price for the fill's own outcome, raw quote units (0..10^decimals).