DOM ladder
Code
Đọc docs →import { ChartWidget } from '@tradecanvas/chart/widget'
// feed: your DataAdapter (a WebSocketAdapter, or your own class)
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'ES',
timeframe: '1m',
theme: 'light',
adapter: feed,
trading: true,
depthLadder: true, // the order book as a click-to-trade ladder
})
// Hand it the book whenever it changes: { bids: [{ price, size }], asks: [...] }
widget.setDepth(book)
widget.openPanel('depthLadder') // the panels start shutimport { ChartWidget } from '@tradecanvas/chart/widget'
// feed: your DataAdapter (a WebSocketAdapter, or your own class)
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'ES',
timeframe: '1m',
theme: 'dark',
adapter: feed,
trading: true,
depthLadder: true, // the order book as a click-to-trade ladder
})
// Hand it the book whenever it changes: { bids: [{ price, size }], asks: [...] }
widget.setDepth(book)
widget.openPanel('depthLadder') // the panels start shut● Dữ liệu thị trường giả lập, tạo trong trình duyệt của bạn
Xem sổ lệnh, không chỉ giá khớp cuối: depth, liquidity heatmap trên GPU, ladder bấm để giao dịch và volume profile.
API: WidgetDepthLadder





