@somnia-chain/markets-sdk / index / PortfolioTradeEvent
Interface: PortfolioTradeEvent
Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:50
A trade the account took part in, human USD-quote units.
Properties
kind
kind:
"trade"
Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:52
Event kind.
timestamp
timestamp:
number
Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:54
Event time (ms).
market
market:
string
Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:56
The market the event belongs to (any stable key; symbol works).
side
side:
"buy"|"sell"
Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:58
Trade direction from the account's perspective.
baseAmount
baseAmount:
number
Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:60
Base size exchanged, human units (positive).
quoteAmount
quoteAmount:
number
Defined in: packages/sdk/src/unified/portfolioAnalytics.ts:62
Quote value exchanged, human USD units (positive).