@somnia-chain/markets-sdk


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

Function: useWatchPerpMarketsResult()

useWatchPerpMarketsResult(opts?): WatchAcquisitionResult

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

Acquire the perp-plane watch and return its typed acquisition failure for inline rendering — the sibling of useWatchPerpMarkets, which only warns.

Worth preferring here: a plane that failed to start and a venue where nothing has been liquidated both render as an empty feed, and only this tells them apart.

Parameters

opts?

UseWatchPerpMarketsOptions

Returns

WatchAcquisitionResult

Throws

No Markets provider is mounted.