@somnia-chain/markets-sdk


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

Interface: BinaryPnl

Defined in: packages/sdk/src/units.ts:195

Realized + unrealized PnL for one account in one binary market, computed purely from its fills + current outcome balances + the market row. Returns HUMAN numbers (quote/collateral units), keyed per outcome (YES/NO) plus a combined total — display-grade, like toHuman.

Properties

yes

yes: BinaryOutcomePnl

Defined in: packages/sdk/src/units.ts:197

PnL attributable to the YES outcome (human quote units).


no

no: BinaryOutcomePnl

Defined in: packages/sdk/src/units.ts:199

PnL attributable to the NO outcome (human quote units).


realized

realized: number

Defined in: packages/sdk/src/units.ts:201

yes.realized + no.realized.


unrealized

unrealized: number

Defined in: packages/sdk/src/units.ts:203

yes.unrealized + no.unrealized.


total

total: number

Defined in: packages/sdk/src/units.ts:205

realized + unrealized.