@somnia-chain/markets-sdk


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

Interface: ExchangeDataStatus

Defined in: packages/sdk/src/unified/exchange.ts:17

Opt-in mixed-tier status; each data source retains its own verdict.

Extends

Properties

status

status: "error" | "ok" | "connecting"

Defined in: packages/sdk/src/unified/exchange.ts:8

Existing chain-tail verdict only; no indexer or price threshold is inferred.

Inherited from

ExchangeStatus.status


updated

updated: number

Defined in: packages/sdk/src/unified/exchange.ts:10

Wall-clock completion time, in milliseconds.

Inherited from

ExchangeStatus.updated


info

info: TailStatus

Defined in: packages/sdk/src/unified/exchange.ts:12

The PRIMARY chain's live-tail snapshot (watch count, socket + resync state).

Inherited from

ExchangeStatus.info


byChain

byChain: Record<number, TailStatus>

Defined in: packages/sdk/src/unified/exchange.ts:14

Every configured chain's live-tail status, keyed by chain id.

Inherited from

ExchangeStatus.byChain


indexer?

optional indexer?: IndexerFreshness | null

Defined in: packages/sdk/src/unified/exchange.ts:25

The PRIMARY chain's raw independently measured indexer lag. An indexer with no metadata row for the chain fails the binding check with NotConfiguredError instead, so null is normally not reached; it remains for a row that goes missing after the check passed. The field is absent when the primary chain's measurement failed; indexerErrorByChain then holds that chain's error.


indexerByChain

indexerByChain: Record<number, IndexerFreshness | null>

Defined in: packages/sdk/src/unified/exchange.ts:31

The indexer lag of every chain whose measurement succeeded, keyed by chain id. null means the chain's metadata row is absent. A chain whose measurement failed has no key here; its error is in indexerErrorByChain.


indexerErrorByChain?

optional indexerErrorByChain?: Record<number, SomniaMarketsClientGetIndexerFreshnessError>

Defined in: packages/sdk/src/unified/exchange.ts:37

The error of every chain whose measurement failed, keyed by chain id. Each value is the original error from that chain's read. The field is present only when at least one chain failed, so a fully healthy result keeps its old shape.


prices

prices: object[]

Defined in: packages/sdk/src/unified/exchange.ts:39

Every asset with price state, independently classified.

asset

asset: string

health

health: PriceFeedHealth