@somnia-chain/markets-sdk / index / UnifiedOrder
Interface: UnifiedOrder
Defined in: packages/sdk/src/unified/structs.ts:129
An order, in the tradable's own terms (prices/amounts human units).
Properties
id
id:
string
Defined in: packages/sdk/src/unified/structs.ts:134
On-chain order id (decimal string) — pass to SomniaMarkets.cancelOrder. Falls back to the tx hash for a write that left nothing resting.
symbol
symbol:
string
Defined in: packages/sdk/src/unified/structs.ts:136
The tradable symbol the order is viewed on.
type
type:
"market"|"limit"
Defined in: packages/sdk/src/unified/structs.ts:138
Requested execution style ("market" computed a crossing IOC limit).
side
side:
"buy"|"sell"
Defined in: packages/sdk/src/unified/structs.ts:140
Direction on this tradable's book (a NO buy is a YES sell internally).
price?
optionalprice?:number
Defined in: packages/sdk/src/unified/structs.ts:142
Limit price, human units; absent when unknown.
amount
amount:
number
Defined in: packages/sdk/src/unified/structs.ts:144
Full order size, human base units.
filled
filled:
number
Defined in: packages/sdk/src/unified/structs.ts:146
Quantity filled so far, human base units.
remaining
remaining:
number
Defined in: packages/sdk/src/unified/structs.ts:148
Quantity still open (amount − filled), human base units.
status
status:
UnifiedOrderStatus
Defined in: packages/sdk/src/unified/structs.ts:150
Lifecycle state — see UnifiedOrderStatus.
txHash?
optionaltxHash?:string
Defined in: packages/sdk/src/unified/structs.ts:152
Tx hash the order was placed in, when known.
timestamp?
optionaltimestamp?:number
Defined in: packages/sdk/src/unified/structs.ts:154
Placement time (ms); write results stamp the local clock.
datetime?
optionaldatetime?:string
Defined in: packages/sdk/src/unified/structs.ts:156
ISO-8601 of timestamp.
info
info:
unknown
Defined in: packages/sdk/src/unified/structs.ts:158
The native order row / PlaceOrderResult.