@somnia-chain/markets-sdk / index / UnifiedPrice
Interface: UnifiedPrice
Defined in: packages/sdk/src/unified/structs.ts:470
A realtime price snapshot for one asset (the on-chain EMA oracle feed).
Properties
symbol
symbol:
string
Defined in: packages/sdk/src/unified/structs.ts:472
Asset symbol, e.g. "BTC", "ETH".
price
price:
number
Defined in: packages/sdk/src/unified/structs.ts:474
Latest price, human units.
ema
ema:
number
Defined in: packages/sdk/src/unified/structs.ts:476
Latest EMA (exponential moving average) price, human units.
timestamp
timestamp:
number
Defined in: packages/sdk/src/unified/structs.ts:478
Block timestamp of the latest observation (ms).
datetime
datetime:
string
Defined in: packages/sdk/src/unified/structs.ts:480
ISO-8601 of timestamp.
info
info:
unknown
Defined in: packages/sdk/src/unified/structs.ts:482
The native LivePrice row (raw 1e18 strings + block metadata).