@somnia-chain/markets-sdk / react / useLivePrice
Function: useLivePrice()
useLivePrice(
asset):LivePrice|null
Defined in: hooks.ts:415
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.
Parameters
asset
string | undefined
Returns
LivePrice | null