@somnia-chain/markets-sdk / react / useLivePrice
Function: useLivePrice()
useLivePrice(
asset,options?):LivePrice|null
Defined in: packages/sdk/src/hooks.ts:1236
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
options?
HookChainOptions = {}
Returns
LivePrice | null
Throws
No Markets provider is mounted.