{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: SpotMarket

SpotMarket = BaseMarket & object

Defined in: query.ts:174

A spot (base/quote) order-book market.

Type Declaration

marketType

marketType: "SPOT"

Discriminator (narrowed).

baseToken

baseToken: string

Base ERC-20 address (lowercased).

quoteToken

quoteToken: string

Quote ERC-20 address (lowercased).

baseSymbol

baseSymbol: string | null

Base token symbol (e.g. "SOMI"); null when the token exposes none.

quoteSymbol

quoteSymbol: string | null

Quote token symbol (e.g. "USDso"); null when the token exposes none.

baseIsNative

baseIsNative: boolean

True when the base is the chain's native token (wrapped for the book).

tickSize

tickSize: string

Price increment, raw quote units per whole base (decimal string).

lotSize

lotSize: string

Quantity increment, raw base units (decimal string).

minQuantity

minQuantity: string

Minimum order quantity, raw base units (decimal string).

markPrice

markPrice: string | null

EMA-smoothed mark price (raw quote per whole base); null until first set.

rawMidpoint

rawMidpoint: string | null

Unsmoothed book midpoint feeding the mark-price EMA; null until first set.

markPriceUpdatedAt

markPriceUpdatedAt: string | null

Timestamp (unix seconds) the mark price last advanced; null until first set.

stopRegistry

stopRegistry: string | null

Per-pool SpotStopOrderRegistry (lowercased); null on pools without one.