@somnia-chain/markets-sdk


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

Interface: PortfolioFlowEvent

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

One portfolio-affecting event, human USD-quote units.

Properties

kind

kind: "trade"

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

Event kind — trades today; funding/margin joins the fold for perps.


timestamp

timestamp: number

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

Event time (ms).


market

market: string

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

The market the event belongs to (any stable key; symbol works).


side

side: "buy" | "sell"

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

Trade direction from the account's perspective.


baseAmount

baseAmount: number

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

Base size exchanged, human units (positive).


quoteAmount

quoteAmount: number

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

Quote value exchanged, human USD units (positive).