示範足跡圖與逐筆成交

足跡圖與逐筆成交

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'