@somnia-chain/markets-sdk


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

Function: useLiveMarketByPool()

useLiveMarketByPool(pool, options?): Market | null

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

One market by pool address (either kind). Watches the pool while mounted.

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

options?

HookChainOptions = {}

Returns

Market | null

Throws

No Markets provider is mounted.