{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: PricePoint

Defined in: priceFeed/types.ts:73

One raw tick — a PricePoint row (one feed tick: the spot median + its EMA mark), parsed. price is the spot index; ema is the EMA-smoothed mark.

Properties

id

id: string

Defined in: priceFeed/types.ts:75

Indexer row id (<txHash>-<symbol>).


asset

asset: string

Defined in: priceFeed/types.ts:77

Asset symbol this tick prices (e.g. "BTC"), uppercased.


price

price: number

Defined in: priceFeed/types.ts:82

Spot index at this tick, human units (raw / 1e18). Lossy past ~15 sig figs — use raw for exact math.


ema

ema: number

Defined in: priceFeed/types.ts:84

EMA-smoothed mark at this tick, human units (the feed's mark).


requestId

requestId: string

Defined in: priceFeed/types.ts:90

Somnia-Agents batch request that produced this tick (provenance). One request prices every symbol in the tick, so all of a tick's rows share it. Decimal string (uint256).


blockNumber

blockNumber: number

Defined in: priceFeed/types.ts:92

Block the tick landed in (chain time, monotonic).


blockTimestamp

blockTimestamp: number

Defined in: priceFeed/types.ts:94

Block timestamp of the tick — unix seconds, chain time.


txHash

txHash: string

Defined in: priceFeed/types.ts:96

Transaction that delivered the tick.


raw

raw: object

Defined in: priceFeed/types.ts:98

Exact 1e18-scaled integer strings for precise math.

price

price: string

Exact spot price — 1e18-scaled integer string.

ema

ema: string

Exact EMA mark — 1e18-scaled integer string.