@somnia-chain/markets-sdk / index / BlockOrder
Type Alias: BlockOrder
BlockOrder =
object
Defined in: packages/sdk/src/activity.ts:585
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:587
Indexer row id.
orderId
orderId:
string
Defined in: packages/sdk/src/activity.ts:589
On-chain order id (decimal string).
market
market:
string
Defined in: packages/sdk/src/activity.ts:591
Lowercased market id.
owner
owner:
string
Defined in: packages/sdk/src/activity.ts:593
Order owner.
isBid
isBid:
boolean
Defined in: packages/sdk/src/activity.ts:594
side
side:
BinarySide|null
Defined in: packages/sdk/src/activity.ts:595
price
price:
string
Defined in: packages/sdk/src/activity.ts:597
Raw quote units per whole base.
fullQuantity
fullQuantity:
string
Defined in: packages/sdk/src/activity.ts:599
Raw base units the order was placed for.
placedAtBlock
placedAtBlock:
bigint
Defined in: packages/sdk/src/activity.ts:605
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:607
Transaction that placed the order.
cancelReason
cancelReason:
string|null
Defined in: packages/sdk/src/activity.ts:613
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:615
Set on touched rows only; null on placed rows.