∞ forever components

Charts & Flow

Liquidity Depth Scanner

Liquidity Depth Scanner control in the The Interest Game system.

css+canvasmedium complexitymoderate motionpointeraccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

Trading dashboards, order-book explainers and market-depth mockups where a cross-hair reads bid and ask walls.

When not to

Real market data: the depth curves are generated, and the BTC and price figures are placeholders.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change the curve steepness (the 1.8 exponent in render()), the placeholder prices (64240 and 64250 in scan()) or the bid and ask colours (--ig04-ss-mint, --ig04-ss-coral). Keep the focusable #ig04-cv canvas with its arrow-key handler, the live readout #ig04-inspectStat and the demo-v1 lifecycle. Set aria-disabled="true" on #ig04-cv for the disabled look.

Safe to edit

  • curve steepness (1.8 exponent in render)
  • placeholder prices (64240, 64250) and depth scale (8.4) in scan()
  • bid and ask colours (--ig04-ss-mint, --ig04-ss-coral)
  • readout and slippage text
  • canvas height (130px)

Keep intact

  • First deliberate pointer/keyboard input stops scanner attract; manual position repaints once.
  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions

Known limitations

  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.

fintechtradingleverageliquiditycryptometricsliquidity-depth-scannerchartdepth-chartorderbookcrosshairbid-askthe-interest-game

More Charts & Flow components

  • Sankey FlowThree-stage Sankey diagram on dark canvas: bezier ribbons grow stage-by-stage from origins to hubs to outcomes, pulsing softly in opacity to show flow volume.
  • Chord DiagramEight ring nodes with curved ribbons that swell and shrink as weights rebalance every ~3s. Additive blending creates glowing color overlaps.
  • Treemap7 rounded cells partition the canvas via slice-dice treemap; cells lerp to new sizes every 2.6 s as synthetic values drift, with a subtle alpha pulse.
  • CandlesticksGreen and red OHLC candles stream in from the right with smooth slide animation; newest candle grows from pivot. Dashed last-price marker traces horizontally.
  • StreamgraphSix translucent stacked bands breathe around a central baseline via layered sines; a sweeping readout line tracks across with colored tick dots per band.
  • Bubble Pack64 mint/teal/amber/coral circles settle under gravity with collision physics; size encodes value. Large bubbles pull toward center with a breathing pulse.