Liquidity heatmap
Resting size by price and time as a heatmap with an optional mid line.
Bright bands are walls of resting orders. The line is the mid price.
| Price | 09:30 | 09:45 | 10:00 | 10:15 | 10:30 | 10:45 |
|---|---|---|---|---|---|---|
| 101.00 | 10 | 27 | 44 | 61 | 78 | 95 |
| 100.50 | 41 | 58 | 75 | 92 | 19 | 36 |
| 100.00 | 72 | 89 | 16 | 33 | 50 | 67 |
| 99.50 | 13 | 30 | 47 | 64 | 81 | 98 |
| 99.00 | 44 | 61 | 78 | 95 | 22 | 39 |
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.mdThe index of every part is at /llms.txt.