@somnia-chain/markets-sdk / index / UnifiedTrade
Interface: UnifiedTrade
Defined in: packages/sdk/src/unified/structs.ts:167
A fill, in the tradable's own terms (prices/amounts human units).
Properties
blockNumber?
optionalblockNumber?:bigint
Defined in: packages/sdk/src/unified/structs.ts:169
Source fill block, preserved in outcome views. Absent when the input has no block provenance.
logIndex?
optionallogIndex?:number
Defined in: packages/sdk/src/unified/structs.ts:171
Source log position. Absent when the input has no log provenance.
id
id:
string
Defined in: packages/sdk/src/unified/structs.ts:173
Native fill id — unique per fill, stable across reads.
symbol
symbol:
string
Defined in: packages/sdk/src/unified/structs.ts:175
The tradable symbol the fill is viewed on.
chainId
chainId:
number
Defined in: packages/sdk/src/unified/structs.ts:177
Numeric chain id the market lives on.
price
price:
number
Defined in: packages/sdk/src/unified/structs.ts:179
Fill price, human units (binary: this outcome's probability).
amount
amount:
number
Defined in: packages/sdk/src/unified/structs.ts:181
Filled quantity, human base units.
cost
cost:
number
Defined in: packages/sdk/src/unified/structs.ts:183
price × amount, in quote units.
side?
optionalside?:"buy"|"sell"
Defined in: packages/sdk/src/unified/structs.ts:185
Taker direction on this tradable's book; undefined when unresolved.
txHash?
optionaltxHash?:string
Defined in: packages/sdk/src/unified/structs.ts:187
Tx hash the fill landed in, when known.
timestamp
timestamp:
number
Defined in: packages/sdk/src/unified/structs.ts:189
Fill block timestamp (ms).
datetime
datetime:
string
Defined in: packages/sdk/src/unified/structs.ts:191
ISO-8601 of timestamp.
info
info:
unknown
Defined in: packages/sdk/src/unified/structs.ts:193
The native fill row (raw units, maker/taker addresses).