@somnia-chain/markets-sdk


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

Function: useLivePrice()

useLivePrice(asset): LivePrice | null

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

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