@somnia-chain/markets-sdk


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

Type Alias: FillOrder

FillOrder = object

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

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

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


orderId

orderId: string

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

uint128 OrderId as a decimal string.


owner

owner: string

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

Owner wallet, lowercased.


isBid

isBid: boolean

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

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

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


price

price: string

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

Limit price, raw quote units per whole base.


fullQuantity

fullQuantity: string

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

Original size, raw base/outcome units.


filledQuantity

filledQuantity: string

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

Cumulative filled size, raw base/outcome units.


quantityRemaining

quantityRemaining: string

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

Unfilled remainder, raw base/outcome units.


status

status: OrderStatus

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

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


rested

rested: boolean

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

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


cancelReason

cancelReason: string | null

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

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

Timestamp (unix seconds) the order was placed.


placedTxHash

placedTxHash: string

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

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