{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: OpenOrder

OpenOrder = object

Defined in: query.ts:1035

A currently-open resting order (subset of the indexer Order entity), as returned by SomniaMarketsClient.getOpenOrders. OrderRow extends it with the lifecycle/fill-progress fields for order history.

Properties

id

id: string

Defined in: query.ts:1037

Order id (${pool}_${orderId}).


orderId

orderId: string

Defined in: query.ts:1039

uint128 OrderId as a decimal string (pass to trader.cancelOrder).


pool

pool: string

Defined in: query.ts:1041

Lower-cased pool address the order rests on.


side

side: BinarySide | null

Defined in: query.ts:1046

BINARY YES/NO classification; NULL on spot orders (the indexer only sets it for binary). For a buy/sell distinction that works on BOTH kinds use isBid.


isBid

isBid: boolean

Defined in: query.ts:1051

True = bid (buy), false = ask (sell). The canonical buy/sell flag — set for spot AND binary, unlike side which is null on spot. Colour/label off this.


price

price: string

Defined in: query.ts:1053

Limit price, raw quote units per whole base (binary: YES-probability scale).


quantityRemaining

quantityRemaining: string

Defined in: query.ts:1055

Unfilled remainder, raw base/outcome units.