Skip to main content
100%

Realtime Orderbook

✓ Published0🌍 Public
ZZhou180
Last edited Jun 16, 2022
Created on Jan 27, 2021

This example visualizes a real-time order book for cryptocurrency pairs, displaying bid and ask depth as an interactive SVG chart. It uses D3.js (v5) to render cumulative price levels, with green and red areas representing bids and asks. Data streams from Binance via Socket.IO, while a REST API fetches the initial snapshot, and the chart updates dynamically with each incoming trade. Users can switch between BTCUSDT, ETHUSDT, and BNBUSDT symbols using a dropdown menu.

AI-generated description
MIT Licensed

Similar vizzes