@somnia-chain/markets-sdk / index / PnLEvent
Interface: PnLEvent
Defined in: derivedReads.ts:239
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:241
Order-book buy/sell of one outcome, or a router mint/merge of a complete set.
outcomeIndex
outcomeIndex:
0|1
Defined in: derivedReads.ts:243
0 = YES, 1 = NO. Ignored for mint/merge (they touch both).
quantity
quantity:
bigint
Defined in: derivedReads.ts:245
Token quantity (raw). For mint/merge this is the pair (set) amount.
price
price:
bigint
Defined in: derivedReads.ts:247
Fill price for the fill's own outcome, raw. Ignored for mint/merge.