@somnia-chain/markets-sdk / index / PnLEvent
Interface: PnLEvent
Defined in: derivedReads.ts:207
One position-affecting event for the PnL fold, in the account's perspective, RAW units. Buys/sells are per-outcome; a mint/merge touches BOTH outcomes.
Properties
kind
kind:
"buy"|"sell"|"mint"|"merge"
Defined in: derivedReads.ts:208
outcomeIndex
outcomeIndex:
0|1
Defined in: derivedReads.ts:210
0 = YES, 1 = NO. Ignored for mint/merge (they touch both).
quantity
quantity:
bigint
Defined in: derivedReads.ts:212
Token quantity (raw). For mint/merge this is the pair (set) amount.
price
price:
bigint
Defined in: derivedReads.ts:214
Fill price for the fill's own outcome, raw. Ignored for mint/merge.