@somnia-chain/markets-sdk


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

Interface: UnifiedTrade

Defined in: packages/sdk/src/unified/structs.ts:161

A fill, in the tradable's own terms (prices/amounts human units).

Properties

id

id: string

Defined in: packages/sdk/src/unified/structs.ts:163

Native fill id — unique per fill, stable across reads.


symbol

symbol: string

Defined in: packages/sdk/src/unified/structs.ts:165

The tradable symbol the fill is viewed on.


price

price: number

Defined in: packages/sdk/src/unified/structs.ts:167

Fill price, human units (binary: this outcome's probability).


amount

amount: number

Defined in: packages/sdk/src/unified/structs.ts:169

Filled quantity, human base units.


cost

cost: number

Defined in: packages/sdk/src/unified/structs.ts:171

price × amount, in quote units.


side?

optional side?: "buy" | "sell"

Defined in: packages/sdk/src/unified/structs.ts:173

Taker direction on this tradable's book; undefined when unresolved.


txHash?

optional txHash?: string

Defined in: packages/sdk/src/unified/structs.ts:175

Tx hash the fill landed in, when known.


timestamp

timestamp: number

Defined in: packages/sdk/src/unified/structs.ts:177

Fill block timestamp (ms).


datetime

datetime: string

Defined in: packages/sdk/src/unified/structs.ts:179

ISO-8601 of timestamp.


info

info: unknown

Defined in: packages/sdk/src/unified/structs.ts:181

The native fill row (raw units, maker/taker addresses).