@somnia-chain/markets-sdk


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

Interface: PortfolioTradeEvent

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

A trade the account took part in, human USD-quote units.

Properties

kind

kind: "trade"

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

Event kind.


timestamp

timestamp: number

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

Event time (ms).


market

market: string

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

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


side

side: "buy" | "sell"

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

Trade direction from the account's perspective.


baseAmount

baseAmount: number

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

Base size exchanged, human units (positive).


quoteAmount

quoteAmount: number

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

Quote value exchanged, human USD units (positive).