{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: PortfolioTrade

PortfolioTrade = object

Defined in: query.ts:1257

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

Properties

id

id: string

Defined in: query.ts:1259

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


fillPrice

fillPrice: string

Defined in: query.ts:1261

Execution price, raw quote units (YES-probability scale).


quantity

quantity: string

Defined in: query.ts:1263

Outcome-token quantity filled, raw units.


timestamp

timestamp: string

Defined in: query.ts:1265

Timestamp (unix seconds) of the fill.


txHash

txHash: string

Defined in: query.ts:1267

Tx hash the fill landed in.


side

side: OpenOrder["side"] | null

Defined in: query.ts:1269

The queried account's side on this fill (maker or taker side), if known.


asMaker

asMaker: boolean

Defined in: query.ts:1271

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


counterparty

counterparty: string | null

Defined in: query.ts:1273

The other party's address, if known.


market

market: object

Defined in: query.ts:1275

Minimal market context for rendering the trade row.

marketAddress

marketAddress: string

The BinaryMarket clone contract's address (lowercased).

asset

asset: string

Underlying asset symbol (e.g. "BTC").

quoteDecimals

quoteDecimals: number

Collateral decimals — format fillPrice/quantity with this.