@somnia-chain/markets-sdk


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

Interface: MarketStats24h

Defined in: packages/sdk/src/derivedReads.ts:150

A market's trailing-24h activity, derived from OHLCV candle buckets. Prices are RAW quote units; volume is RAW quote (collateral) units.

Properties

volume24h

volume24h: bigint

Defined in: packages/sdk/src/derivedReads.ts:152

Σ quote volume over the window (raw collateral units).


baseVolume24h

baseVolume24h: bigint

Defined in: packages/sdk/src/derivedReads.ts:154

Σ base/outcome-token volume over the window (raw base units).


trades24h

trades24h: number

Defined in: packages/sdk/src/derivedReads.ts:156

Σ trade count over the window.


priceChange24h

priceChange24h: bigint

Defined in: packages/sdk/src/derivedReads.ts:161

closePrice(last) − openPrice(first) over the window (raw, signed). 0n if fewer than one candle in-window.


high24h

high24h: bigint | null

Defined in: packages/sdk/src/derivedReads.ts:163

Max high across the window (raw). null if no candles in-window.


low24h

low24h: bigint | null

Defined in: packages/sdk/src/derivedReads.ts:165

Min low across the window (raw). null if no candles in-window.


openPrice24h

openPrice24h: bigint | null

Defined in: packages/sdk/src/derivedReads.ts:167

openPrice of the first in-window candle (raw). null if none.