• Open in:

Live Order Book / Depth Chart

Important: This demo uses direct access URL to Poloniex API, which may be prevented by CORS restrictions in browser. If the demo does not work, try accessing the following URL directly first, then reload this page, so the source is cached.

This demo shows how you can implement a simple “Order Book” chart using our XYChart. The chart shows a real distribution of booked sell and buy orders for bitcoin and their volume.

Live data loading and processing

This chart uses amCharts 5 build-in external data loading functionality.

In this case we load data directly from Bitcoin exchange Poloniex API.

The chart is set to reload the data every 30 seconds.

More about loading external data

Build this chart with AI

The prompt below can be used to build this chart with AI. For best coding results, use the most advanced AI models, like Claude Opus 4.6 and GPT-5.3-Codex. For more info and tips, check out amCharts AI docs.

Create a live order book depth chart for cryptocurrency. Display four series: cumulative bid volume as a green step line with faint fill, cumulative ask volume as a red step line with faint fill, and individual bid/ask volumes as dark semi-transparent columns. X-axis shows price, Y-axis shows volume. Process raw price-volume pairs by sorting and calculating cumulative totals. Add an XY cursor, tooltips showing price and volumes, and auto-refresh every 30 seconds. Use amCharts 5 library.

Demo source