@somnia-chain/markets-sdk / react / useLivePriceTicks
Function: useLivePriceTicks()
useLivePriceTicks(
asset,limit?,options?):PricePoint[]
Defined in: packages/sdk/src/hooks.ts:1286
The live tick tape of one asset, newest first. Watches the feed while mounted.
The array keeps its reference until this asset receives new ticks, and every reader of the same asset and limit shares it. It is frozen: copy it before you sort or reverse it.
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
limit?
number = 100
options?
HookChainOptions = {}
Returns
Throws
No Markets provider is mounted.