@somnia-chain/markets-sdk


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

Type Alias: FillOrder

FillOrder = object

Defined in: packages/sdk/src/fills.ts:404

One side's order on a fill — the resting order, or the one that crossed it.

A narrower shape than OrderRow: this describes an order in the context of a fill whose market is already known, so it carries no market labelling. Amounts are raw units.

Properties

id

id: string

Defined in: packages/sdk/src/fills.ts:406

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


orderId

orderId: string

Defined in: packages/sdk/src/fills.ts:408

uint128 OrderId as a decimal string.


owner

owner: string

Defined in: packages/sdk/src/fills.ts:410

Owner wallet, lowercased.


isBid

isBid: boolean

Defined in: packages/sdk/src/fills.ts:415

True = bid (buy). Set on every market kind, unlike side, which the indexer fills in only for binary.


side

side: BinarySide | null

Defined in: packages/sdk/src/fills.ts:417

BINARY only — the YES/NO side; null on spot and perp.


price

price: string

Defined in: packages/sdk/src/fills.ts:419

Limit price, raw quote units per whole base.


fullQuantity

fullQuantity: string

Defined in: packages/sdk/src/fills.ts:421

Original size, raw base/outcome units.


filledQuantity

filledQuantity: string

Defined in: packages/sdk/src/fills.ts:423

Cumulative filled size, raw base/outcome units.


quantityRemaining

quantityRemaining: string

Defined in: packages/sdk/src/fills.ts:425

Unfilled remainder, raw base/outcome units.


status

status: OrderStatus

Defined in: packages/sdk/src/fills.ts:427

Reconciled lifecycle status (Open/Filled/Cancelled/Expired/Closed).


rested

rested: boolean

Defined in: packages/sdk/src/fills.ts:429

Whether the order ever rested on the book (an OrderRested fired).


cancelReason

cancelReason: string | null

Defined in: packages/sdk/src/fills.ts:435

WHY the PROTOCOL cancelled the order, when it was not the owner. Null for an owner cancel and for an order that was never cancelled — so a Cancelled status with a null reason means the owner did it.


placedAtTimestamp

placedAtTimestamp: string

Defined in: packages/sdk/src/fills.ts:437

Timestamp (unix seconds) the order was placed.


placedTxHash

placedTxHash: string

Defined in: packages/sdk/src/fills.ts:439

Transaction the order was PLACED in — usually not the fill's transaction.