@somnia-chain/markets-sdk / index / BinaryOutcomePnl
Interface: BinaryOutcomePnl
Defined in: packages/sdk/src/units.ts:150
One outcome leg's slice of a BinaryPnl. HUMAN numbers (quote/collateral units) throughout — display-grade, like toHuman.
Properties
realized
realized:
number
Defined in: packages/sdk/src/units.ts:152
Realized on this outcome's sells: proceeds − avg cost of the tokens sold.
unrealized
unrealized:
number
Defined in: packages/sdk/src/units.ts:154
The remaining balance marked to mark, minus its avg cost.
avgCost
avgCost:
number
Defined in: packages/sdk/src/units.ts:156
Average cost per token of the fills-derived holding; 0 when none held.
mark
mark:
number
Defined in: packages/sdk/src/units.ts:162
The price this leg is valued at: the book-clamped last while trading (see markYesPrice; the NO leg at its complement), or the settlement payout (1 / 0, or 0.5 voided) once resolved.
value
value:
number
Defined in: packages/sdk/src/units.ts:164
Mark value of the current balance: balance × mark.