usePositionFeed
stableLive FX position tick hook — returns { positions, lastUpdate, delta, running, pause, resume }. Configurable volatility and tick interval.
import { usePositionFeed } from "@nodus/design-system/patterns"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
interval | number | — | Tick frequency in ms (default: 1500). |
volatility | number (0–1) | — | Rate movement magnitude (default: 0.3). |
intervalType
numberDefault —Tick frequency in ms (default: 1500).
volatilityType
number (0–1)Default —Rate movement magnitude (default: 0.3).
Design Rationale
This component was designed to express:
Explore Related
useAgentStream→
SSE stream subscription hook — returns { chunks, status, latency, start, reset }. Simulates token-by-token delivery with configurable TTFT, chunkInterval, and chunkSize.
useAgentHeartbeat→
Agent status polling hook — returns { agents, lastPing, stale, ping }. Marks agents stale after configurable staleness window. Used in multi-agent orchestration views.
Was this helpful?