@somnia-chain/markets-sdk / index / LiveFill
Interface: LiveFill
Defined in: store.ts:101
One executed fill (mirror of indexer Fill, plus the resolved pool address).
Properties
id
id:
string
Defined in: store.ts:103
${blockNumber}_${logIndex} — matches the indexer Fill id
market_id
market_id:
string
Defined in: store.ts:105
Id of the market the fill executed in (Hasura FK naming; joins LiveMarket).
pool
pool:
string
Defined in: store.ts:107
lowercased pool address (the log source)
taker
taker:
string|undefined
Defined in: store.ts:113
Taker info is unresolved at OrderFilled emission time (the taker's OrderPlaced fires AFTER the fill in the same tx). Resolved via the takerOrder_id foreign key — enrichFill back-joins to LiveOrder.
maker
maker:
string|undefined
Defined in: store.ts:118
Maker's address. Undefined until the maker's resting order is known — set when it
was witnessed live, else back-joined from the order row via makerOrder_id.
takerSide
takerSide:
BinarySide|undefined
Defined in: store.ts:123
Taker's outcome side. Undefined on spot fills, and on binary fills until the
taker order is joined (see taker).
makerSide
makerSide:
BinarySide|undefined
Defined in: store.ts:128
Maker's outcome side. Undefined on spot fills, and until the maker order is
joined (see maker).
kind
kind:
BinaryFillKind|undefined
Defined in: store.ts:133
How the fill settled (see BinaryFillKind). Undefined on spot fills, and on binary fills until BOTH sides are joined (classification needs both).
takerOrder_id
takerOrder_id:
string
Defined in: store.ts:135
Foreign keys to LiveOrder rows for join-side recovery.
makerOrder_id
makerOrder_id:
string
Defined in: store.ts:137
Maker-side counterpart of takerOrder_id (a LiveOrder key).
fillPrice
fillPrice:
string
Defined in: store.ts:139
Raw quote/collateral units per whole base/outcome token.
quantity
quantity:
string
Defined in: store.ts:144
Base/outcome tokens exchanged — raw units scaled by the market's baseDecimals
(decimal string).
quoteQuantity
quoteQuantity:
string
Defined in: store.ts:146
quote value = quantity * fillPrice / 10^baseDecimals
takerRemainingQuantity
takerRemainingQuantity:
string
Defined in: store.ts:148
Taker order's unfilled size after this fill — raw base/outcome units (decimal string).
makerRemainingQuantity
makerRemainingQuantity:
string
Defined in: store.ts:150
Maker order's unfilled size after this fill — raw base/outcome units (decimal string).
timestamp
timestamp:
string
Defined in: store.ts:152
Block timestamp of the fill — unix seconds (decimal string).
blockNumber
blockNumber:
number
Defined in: store.ts:154
Block the fill landed in.
logIndex
logIndex:
number
Defined in: store.ts:156
Log index within the block — with blockNumber, the fill's tape position.
txHash
txHash:
string
Defined in: store.ts:158
Transaction that produced the fill.