@somnia-chain/markets-sdk


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

Type Alias: FillOrder

FillOrder = object

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

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:478

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


orderId

orderId: string

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

uint128 OrderId as a decimal string.


owner

owner: string

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

Owner wallet, lowercased.


isBid

isBid: boolean

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

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:489

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


price

price: string

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

Limit price, raw quote units per whole base.


fullQuantity

fullQuantity: string

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

Original size, raw base/outcome units.


filledQuantity

filledQuantity: string

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

Cumulative filled size, raw base/outcome units.


quantityRemaining

quantityRemaining: string

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

Unfilled remainder, raw base/outcome units.


status

status: OrderStatus

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

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


rested

rested: boolean

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

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


cancelReason

cancelReason: string | null

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

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:509

Timestamp (unix seconds) the order was placed.


placedTxHash

placedTxHash: string

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

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