@somnia-chain/markets-sdk


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

Interface: OrderFill

Defined in: packages/sdk/src/trade.ts:82

A single fill that occurred within a tx (decoded from the pool's OrderFilled).

Properties

takerOrderId

takerOrderId: bigint

Defined in: packages/sdk/src/trade.ts:84

On-chain id of the taker (incoming) order.


makerOrderId

makerOrderId: bigint

Defined in: packages/sdk/src/trade.ts:86

On-chain id of the maker (resting) order that matched.


quantityFilled

quantityFilled: bigint

Defined in: packages/sdk/src/trade.ts:88

Quantity exchanged in this fill, raw units (outcome tokens on binary, base on spot).


takerRemainingQuantity

takerRemainingQuantity: bigint

Defined in: packages/sdk/src/trade.ts:90

Taker order's quantity still unfilled after this fill, raw units.


makerRemainingQuantity

makerRemainingQuantity: bigint

Defined in: packages/sdk/src/trade.ts:92

Maker order's quantity still resting after this fill, raw units.


fillPrice

fillPrice: bigint

Defined in: packages/sdk/src/trade.ts:97

Fill price — the YES price on a binary pool (raw collateral units per whole outcome token); raw quote units per whole base on a spot pool.