Klar

Charts / React finance charts / Markets

Order book depth

Cumulative bids and asks stepping away from the mid, so you can read the spread, the walls and what a sweep to any price would cost.

React component OrderBookDepth, data through props. Prices, order books, curves and risk: the vocabulary of a trading desk. Tags: order-book, depth, bids-asks, liquidity, crypto, trading, step-area.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, OrderBookDepth } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/fin-order-book.json

Usage

<OrderBookDepth className="mt-4" bids={book.bids} asks={book.asks} base="ETH" quote="USD" height={380} />

Related order book depth charts