@somnia-chain/markets-sdk / react / useLivePrice
Function: useLivePrice()
useLivePrice(
asset):LivePrice|null
Defined in: packages/sdk/src/hooks.ts:782
The live current price of one asset, updating the moment a new tick is pushed — no round-trips, no refetch interval. Watches the feed while mounted.
Background acquisition failures use the configured debug/console warning channel. Use the corresponding useWatchMarketResult/useWatchUserResult/useWatchPriceResult hook for inline error UI.
Parameters
asset
string | undefined
Returns
LivePrice | null
Throws
No Markets provider is mounted.