@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / react / useLiveFundingUpdates

Function: useLiveFundingUpdates()

useLiveFundingUpdates(pool, limit?): LiveFundingUpdate[]

Defined in: packages/sdk/src/hooks.ts:572

Funding settlements for one pool seen by the live tail, OLDEST FIRST (chart order, matching SomniaMarketsClient.getLiveFundingUpdates) — not newest first like useLiveFills. Watches the pool while mounted.

These are the tail's counterpart to the indexed FundingRateUpdate series and carry only what FundingUpdated puts on the wire — no intervalsAccrued, no covered span. For a chart, prefer useFundingRateSeries, which uses these purely as a nudge.

Background acquisition failures use the configured debug/console warning channel. Use the corresponding useWatchMarketResult/useWatchUserResult/useWatchPriceResult hook for inline error UI.

Parameters

pool

string | undefined

limit?

number = 50

Returns

LiveFundingUpdate[]

Throws

No Markets provider is mounted.