足迹图与逐笔成交
代码
阅读文档 →import { ChartWidget } from '@tradecanvas/chart/widget'
// feed must give trades: fetchTrades and subscribeTrades
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'ES',
timeframe: '1m',
theme: 'light',
adapter: feed,
tape: true, // time and sales beside the chart
chartOptions: { chartType: 'footprint' }, // each bar split by price, bid against ask
})
widget.openPanel('tape')import { ChartWidget } from '@tradecanvas/chart/widget'
// feed must give trades: fetchTrades and subscribeTrades
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'ES',
timeframe: '1m',
theme: 'dark',
adapter: feed,
tape: true, // time and sales beside the chart
chartOptions: { chartType: 'footprint' }, // each bar split by price, bid against ask
})
widget.openPanel('tape')● 模拟行情数据,在你的浏览器中生成
不只看最新价,还要看订单簿:深度、基于 GPU 的流动性热力图、点击交易的价格阶梯和成交量分布。
API: chartType: 'footprint'





