@somnia-chain/markets-sdk


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

Interface: PnlBucket

Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:224

One PnL bucket: the PnL attributed to (prevSample, t].

Properties

t

t: number

Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:226

Bucket end time (ms).


pnlUsd

pnlUsd: number

Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:228

Signed PnL attributed to the bucket, USD.