@somnia-chain/markets-sdk


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

Type Alias: PerpPortfolioTrade

PerpPortfolioTrade = object

Defined in: packages/sdk/src/perp/portfolio.ts:84

One recent fill the wallet participated in (perp portfolio view).

Properties

id

id: string

Defined in: packages/sdk/src/perp/portfolio.ts:86

Fill id (${blockNumber}_${logIndex}).


fillPrice

fillPrice: string

Defined in: packages/sdk/src/perp/portfolio.ts:88

Execution price, raw quote units per whole base.


quantity

quantity: string

Defined in: packages/sdk/src/perp/portfolio.ts:90

Base quantity filled, raw units.


quoteQuantity

quoteQuantity: string

Defined in: packages/sdk/src/perp/portfolio.ts:92

Collateral value of the fill (raw, floored).


timestamp

timestamp: string

Defined in: packages/sdk/src/perp/portfolio.ts:94

Timestamp (unix seconds) of the fill.


txHash

txHash: string

Defined in: packages/sdk/src/perp/portfolio.ts:96

Tx hash the fill landed in.


isBid

isBid: boolean

Defined in: packages/sdk/src/perp/portfolio.ts:98

Whether the account bought (went long) on this fill.


asMaker

asMaker: boolean

Defined in: packages/sdk/src/perp/portfolio.ts:100

Whether the account was the maker (resting) on this fill.


counterparty

counterparty: string | null

Defined in: packages/sdk/src/perp/portfolio.ts:102

The other party's address, if known.


market

market: PerpPortfolioMarket

Defined in: packages/sdk/src/perp/portfolio.ts:104

The market the fill happened on.