{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: PriceCandle

Defined in: priceFeed/types.ts:107

One OHLC candle — a Candle row, parsed to human units.

Properties

asset

asset: string

Defined in: priceFeed/types.ts:109

Asset symbol this candle rolls up (e.g. "BTC"), uppercased.


resolution

resolution: PriceCandleResolution

Defined in: priceFeed/types.ts:111

Rollup bucket width — see PriceCandleResolution.


bucketStart

bucketStart: number

Defined in: priceFeed/types.ts:113

Bucket start — unix seconds, chain time.


open

open: number

Defined in: priceFeed/types.ts:115

Spot price at the first tick in the bucket, human units (raw / 1e18).


high

high: number

Defined in: priceFeed/types.ts:117

Highest spot price in the bucket, human units.


low

low: number

Defined in: priceFeed/types.ts:119

Lowest spot price in the bucket, human units.


close

close: number

Defined in: priceFeed/types.ts:121

Spot price at the last tick in the bucket, human units.


emaClose

emaClose: number

Defined in: priceFeed/types.ts:123

EMA mark at bucket close (the feed's markClose).


count

count: number

Defined in: priceFeed/types.ts:125

Number of feed ticks in the bucket (update density — NOT trade volume).