Skip to content

OrderFlowGL

stable

GPU-accelerated order flow tape — trades as circular GL_POINTS on a price-over-time scatter. Dot radius scales with quantity. Buy = outcome-positive green, sell = agency red. Ring buffer for real-time streams (default 2000 trades).

FinanceInteractive/Storybook ↗
import { OrderFlowGL } from "@nodus/design-system/finance"
Loading demo…

Props

tradesrequired
Type Trade[]Default

Array of trades pushed in; new trades appended to ring buffer

maxTrades
Type numberDefault

Ring buffer capacity (default 2000)

height
Type numberDefault

Chart height in px (default 240)

scaleDots
Type booleanDefault

Scale dot radius by quantity (default true)

onTradeHover
Type (trade: T | null) => voidDefault

Callback when hovering near a trade dot

Metadatasemanticoutcomeagency
MobileStacks / Scroll

Order flow scatter requires min 300px for legible dot distribution. Reduce maxTrades for lower-memory mobile devices.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?