@somnia-chain/markets-sdk


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

Type Alias: OpenPositionPnL

OpenPositionPnL = BinaryPositionPnL & object

Defined in: packages/sdk/src/binary/portfolio.ts:113

An open binary position joined with its reliable avg-cost PnL — the batched, positions-list companion to getBinaryPositionPnL (which is per market). costBasis / avgCost / markValue / unrealizedPnl / realizedPnl are RAW collateral units; format with market.quoteDecimals.

Type Declaration

market

market: PortfolioMarket

The market the position is in (id / addresses / quoteDecimals / status / …).