@somnia-chain/markets-sdk


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

Interface: MarketOrderEstimate

Defined in: packages/sdk/src/unified/quotes.ts:21

A market-order fill estimate from walking the book, human units.

Properties

averagePrice

averagePrice: number

Defined in: packages/sdk/src/unified/quotes.ts:23

Volume-weighted average fill price (Σ quote / Σ base).


baseFilled

baseFilled: number

Defined in: packages/sdk/src/unified/quotes.ts:25

Base units the walk filled.


quoteFilled

quoteFilled: number

Defined in: packages/sdk/src/unified/quotes.ts:27

Quote units the walk exchanged (Σ qty·price).


levelsConsumed

levelsConsumed: number

Defined in: packages/sdk/src/unified/quotes.ts:33

Book levels the order crosses. Each matched level is a fill and execution gas scales with it — the signal for sizing a gas limit ahead of submission.