@somnia-chain/markets-sdk


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

Function: useLiveFundingUpdates()

useLiveFundingUpdates(pool, limit?): LiveFundingUpdate[]

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

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.

Parameters

pool

string | undefined

limit?

number = 50

Returns

LiveFundingUpdate[]