{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: PriceFeedConfig

Defined in: config.ts:70

The realtime price-feed endpoint — the standalone EMA price-feed indexer (Hasura GraphQL). ONE endpoint serves every tracked asset (BTC/USDT, ETH/USDT, …); callers select an asset by filter. Snapshot + history read over HTTP; live prices stream over a Hasura WebSocket subscription.

Properties

url

url: string

Defined in: config.ts:72

HTTP GraphQL endpoint (snapshot + history + candles, all assets).


wsUrl?

optional wsUrl?: string

Defined in: config.ts:75

WebSocket GraphQL endpoint for live subscriptions. Derived from url (http→ws, https→wss) when omitted.