@somnia-chain/markets-sdk / index / BlockOrder
Type Alias: BlockOrder
BlockOrder =
object
Defined in: packages/sdk/src/activity.ts:609
An order event that happened in one block.
Deliberately carries NO status, filledQuantity or quantityRemaining.
Order is a mutable row — those three columns are as-of-now, not as-of-this
block — so the query does not select them and this type cannot leak them into
a historical view. The block's own traded quantity comes from fills.
Properties
id
id:
string
Defined in: packages/sdk/src/activity.ts:611
Indexer row id.
orderId
orderId:
string
Defined in: packages/sdk/src/activity.ts:613
On-chain order id (decimal string).
market
market:
string
Defined in: packages/sdk/src/activity.ts:615
Lowercased market id.
owner
owner:
string
Defined in: packages/sdk/src/activity.ts:617
Order owner.
isBid
isBid:
boolean
Defined in: packages/sdk/src/activity.ts:618
side
side:
BinarySide|null
Defined in: packages/sdk/src/activity.ts:619
price
price:
string
Defined in: packages/sdk/src/activity.ts:621
Raw quote units per whole base.
fullQuantity
fullQuantity:
string
Defined in: packages/sdk/src/activity.ts:623
Raw base units the order was placed for.
placedAtBlock
placedAtBlock:
bigint
Defined in: packages/sdk/src/activity.ts:629
Block the order was PLACED in. Equal to the viewed block for a placed row;
earlier than it for most touched rows, since a resting order is usually
quoted in one block and removed in another.
placedTxHash
placedTxHash:
string
Defined in: packages/sdk/src/activity.ts:631
Transaction that placed the order.
cancelReason
cancelReason:
string|null
Defined in: packages/sdk/src/activity.ts:637
Why the protocol removed the order, when the protocol (not the owner) did. Null for an owner cancel and for an order that was never cancelled — so a null here does NOT mean "still open".
touch
touch:
BlockOrderTouch|null
Defined in: packages/sdk/src/activity.ts:639
Set on touched rows only; null on placed rows.