@somnia-chain/markets-sdk / index / SpotPortfolioTrade
Type Alias: SpotPortfolioTrade
SpotPortfolioTrade =
object
Defined in: packages/sdk/src/spot/portfolio.ts:89
One recent fill the wallet participated in (spot portfolio view).
Properties
id
id:
string
Defined in: packages/sdk/src/spot/portfolio.ts:91
Fill id (${blockNumber}_${logIndex}).
fillPrice
fillPrice:
string
Defined in: packages/sdk/src/spot/portfolio.ts:93
Execution price, raw quote units per whole base.
quantity
quantity:
string
Defined in: packages/sdk/src/spot/portfolio.ts:95
Base quantity filled, raw units.
quoteQuantity
quoteQuantity:
string
Defined in: packages/sdk/src/spot/portfolio.ts:97
Quote value of the fill (raw, floored).
timestamp
timestamp:
string
Defined in: packages/sdk/src/spot/portfolio.ts:99
Timestamp (unix seconds) of the fill.
txHash
txHash:
string
Defined in: packages/sdk/src/spot/portfolio.ts:101
Tx hash the fill landed in.
isBid
isBid:
boolean
Defined in: packages/sdk/src/spot/portfolio.ts:103
Whether the account bought the base asset on this fill.
asMaker
asMaker:
boolean
Defined in: packages/sdk/src/spot/portfolio.ts:105
Whether the account was the maker (resting) on this fill.
counterparty
counterparty:
string|null
Defined in: packages/sdk/src/spot/portfolio.ts:107
The other party's address, if known.
market
market:
SpotPortfolioMarket
Defined in: packages/sdk/src/spot/portfolio.ts:109
The market the fill happened on.