@somnia-chain/markets-sdk / index / UnifiedTrade
Interface: UnifiedTrade
Defined in: packages/sdk/src/unified/structs.ts:97
A fill, in the tradable's own terms (prices/amounts human units).
Properties
id
id:
string
Defined in: packages/sdk/src/unified/structs.ts:99
Native fill id — unique per fill, stable across reads.
symbol
symbol:
string
Defined in: packages/sdk/src/unified/structs.ts:101
The tradable symbol the fill is viewed on.
price
price:
number
Defined in: packages/sdk/src/unified/structs.ts:103
Fill price, human units (binary: this outcome's probability).
amount
amount:
number
Defined in: packages/sdk/src/unified/structs.ts:105
Filled quantity, human base units.
cost
cost:
number
Defined in: packages/sdk/src/unified/structs.ts:107
price × amount, in quote units.
side?
optionalside?:"buy"|"sell"
Defined in: packages/sdk/src/unified/structs.ts:109
Taker direction on this tradable's book; undefined when unresolved.
txHash?
optionaltxHash?:string
Defined in: packages/sdk/src/unified/structs.ts:111
Tx hash the fill landed in, when known.
timestamp
timestamp:
number
Defined in: packages/sdk/src/unified/structs.ts:113
Fill block timestamp (ms).
datetime
datetime:
string
Defined in: packages/sdk/src/unified/structs.ts:115
ISO-8601 of timestamp.
info
info:
unknown
Defined in: packages/sdk/src/unified/structs.ts:117
The native fill row (raw units, maker/taker addresses).