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