流动性热力图
代码
阅读文档 →import { Chart } from '@tradecanvas/chart'
const chart = new Chart(el, { theme: 'dark', renderer: 'webgl' })
chart.setData(bars)
chart.setDepthHeatmapVisible(true)
// Each order-book snapshot becomes a column of the heatmap behind the price
chart.pushDepthSnapshot(book, Date.now())● 模拟行情数据,在你的浏览器中生成
不只看最新价,还要看订单簿:深度、基于 GPU 的流动性热力图、点击交易的价格阶梯和成交量分布。
API: pushDepthSnapshot
