@somnia-chain/markets-sdk / index / BinaryPnl
Interface: BinaryPnl
Defined in: units.ts:62
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:
object
Defined in: units.ts:63
realized
realized:
number
unrealized
unrealized:
number
no
no:
object
Defined in: units.ts:64
realized
realized:
number
unrealized
unrealized:
number
realized
realized:
number
Defined in: units.ts:66
yes.realized + no.realized.
unrealized
unrealized:
number
Defined in: units.ts:68
yes.unrealized + no.unrealized.
total
total:
number
Defined in: units.ts:70
realized + unrealized.