@somnia-chain/markets-sdk / index / UnifiedOrder
Interface: UnifiedOrder
Defined in: unified/structs.ts:124
An order, in the tradable's own terms (prices/amounts human units).
Properties
id
id:
string
Defined in: unified/structs.ts:129
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: unified/structs.ts:131
The tradable symbol the order is viewed on.
type
type:
"market"|"limit"
Defined in: unified/structs.ts:133
Requested execution style ("market" computed a crossing IOC limit).
side
side:
"buy"|"sell"
Defined in: unified/structs.ts:135
Direction on this tradable's book (a NO buy is a YES sell internally).
price?
optionalprice?:number
Defined in: unified/structs.ts:137
Limit price, human units; absent when unknown.
amount
amount:
number
Defined in: unified/structs.ts:139
Full order size, human base units.
filled
filled:
number
Defined in: unified/structs.ts:141
Quantity filled so far, human base units.
remaining
remaining:
number
Defined in: unified/structs.ts:143
Quantity still open (amount − filled), human base units.
status
status:
UnifiedOrderStatus
Defined in: unified/structs.ts:145
Lifecycle state — see UnifiedOrderStatus.
timestamp?
optionaltimestamp?:number
Defined in: unified/structs.ts:147
Placement time (ms); write results stamp the local clock.
datetime?
optionaldatetime?:string
Defined in: unified/structs.ts:149
ISO-8601 of timestamp.
info
info:
unknown
Defined in: unified/structs.ts:151
The native order row / PlaceOrderResult.