@somnia-chain/markets-sdk


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

Type Alias: MarketTradeActivity

MarketTradeActivity = MarketActivityBase & object

Defined in: packages/sdk/src/activity.ts:85

A trade: one fill of one resting order by one incoming order.

Amounts are raw units. fillPrice is quote units per whole base — on binary, the YES-probability scale.

Type Declaration

kind

kind: "TRADE"

pool

pool: string

Pool the fill executed on, lowercased.

fillPrice

fillPrice: string

Execution price, raw quote units per whole base.

quantity

quantity: string

Base/outcome quantity filled, raw units.

quoteQuantity

quoteQuantity: string

Quote/collateral value of the fill, raw units.

maker

maker: string | null

Maker (resting) wallet, lowercased; null when the indexer has not joined it.

makerSide

makerSide: BinarySide | null

BINARY only — the maker's YES/NO side; null on spot and perp.

taker

taker: string | null

Taker (aggressing) wallet, lowercased; null when the indexer has not joined it yet.

Read from the taker's ORDER when the fill's own denormalized copy is absent. Fill.taker is populated only on spot, by a bridge that runs after the fill, so a binary trade names its taker through the order or not at all.

takerSide

takerSide: BinarySide | null

BINARY only — the taker's YES/NO side; null on spot and perp.

takerIsBid

takerIsBid: boolean | null

True when the taker bought the base (or YES) and the maker held the ask — the aggressor's direction. Null until the taker side is known.