Skip to content
caliper ui pro docs

Liquidity heatmap

Resting size by price and time as a heatmap with an optional mid line.

Pro
Resting size by price and time

Bright bands are walls of resting orders. The line is the mid price.

Resting size by price and time
Price09:3009:4510:0010:1510:3010:45
101.00102744617895
100.50415875921936
100.00728916335067
99.50133047648198
99.00446178952239

When to use

  • Seeing how liquidity moved through a session.
  • Comparing walls of orders over time.

When not to use

  • A single snapshot; use an order book.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/liquidity-heatmap

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

LiquidityHeatmap

12 props
PropTypeDefaultDescription
label *string—
times *readonly string[]—One label per column, oldest first.
prices *readonly number[]—One price per row, highest first.
values *readonly (readonly number[])[]—values[row][column]: resting size at that price and time.
midreadonly (number | undefined)[]—Optional mid price per column, drawn as a line.
normalize"all" | "column""all""column" scales each moment by its own densest level.
unitstring""
formatPrice((price: number) => string)(price) => price.toFixed(2)
formatSize((size: number) => string)numberText
loadingboolean—
errorstring—
classNamestring—

Keyboard

→
Moves to the next item or value.
←
Moves to the previous item or value.
↑
Moves to the previous item or value.
↓
Moves to the next item or value.
PageUp
Moves by a larger step, or to the previous page.
PageDown
Moves by a larger step, or to the next page.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.
Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It exposes group and status semantics, with aria-label, aria-busy and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/liquidity-heatmap.md

The index of every part is at /llms.txt.

More in Market charts