@somnia-chain/markets-sdk


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

Function: useLiveMarketByPool()

useLiveMarketByPool(pool): Market | null

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

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

Returns

Market | null

Throws

No Markets provider is mounted.