{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: LiveOrder

Defined in: store.ts:162

A resting/closed order (mirror of indexer Order).

Properties

id

id: string

Defined in: store.ts:164

${pool}_${orderId}


market_id

market_id: string

Defined in: store.ts:169

Id of the market the order was placed in. Pools are RECYCLED across markets (never concurrently), so book reads filter on this, not the pool alone.


pool

pool: string

Defined in: store.ts:171

Lowercased pool address hosting the order's book.


orderId

orderId: string

Defined in: store.ts:173

On-chain order id, unique per pool (decimal string).


owner

owner: string

Defined in: store.ts:175

Order owner's address (as emitted — compare case-insensitively).


side

side: BinarySide | undefined

Defined in: store.ts:177

Binary outcome side. Undefined on spot orders (spot has no YES/NO).


isBid

isBid: boolean

Defined in: store.ts:182

Which side of the book's NATIVE terms the order rests on: true = bid. Native terms are YES terms for binary, quote-per-base for spot.


userData

userData: string

Defined in: store.ts:187

Opaque caller bookkeeping from OrderPlaced, carried verbatim (uint256 decimal string) — never decoded; v2 takes the side from BinaryOrderPlaced.kind instead.


price

price: string

Defined in: store.ts:192

Limit price in the book's native terms — raw quote/collateral units per whole base/outcome token (decimal string).


fullQuantity

fullQuantity: string

Defined in: store.ts:194

Original size at placement — raw base/outcome units (decimal string).


quantityRemaining

quantityRemaining: string

Defined in: store.ts:196

Unfilled size still resting — raw base/outcome units (decimal string).


filledQuantity

filledQuantity: string

Defined in: store.ts:198

Cumulative size filled so far — raw base/outcome units (decimal string).


expireTimestampNs

expireTimestampNs: string

Defined in: store.ts:204

Order expiry as a uint64 nanosecond timestamp (decimal string). GTC orders carry type(uint64).max, so they never expire; the matcher rejects a 0/past expiry at placement, so a resting order always has a real future ns value.


status

status: OrderStatus

Defined in: store.ts:206

Lifecycle state (see OrderStatus).


rested

rested: boolean

Defined in: store.ts:211

True once OrderRested landed — the order is ON the book. Only rested open orders count toward the materialized book levels.


createdAt

createdAt: string

Defined in: store.ts:213

Placement block timestamp — unix seconds (decimal string).


txHash

txHash: string

Defined in: store.ts:215

Transaction that placed the order.