自選清單與商品詳情

import { ChartWidget } from '@tradecanvas/chart/widget'

// feed: your DataAdapter (a WebSocketAdapter, or your own class)
const widget = new ChartWidget(document.getElementById('chart')!, {
  symbol: 'AAPL',
  timeframe: '5m',
  theme: 'dark',
  adapter: feed,
  watchlist: {
    lists: [{ id: 'main', name: 'Main', symbols: ['AAPL', 'MSFT', 'NVDA', 'BTCUSDT', 'EURUSD'] }],
  },
  // the rows tick from feed.subscribeQuotes()
})

● 模擬行情資料,在你的瀏覽器中產生

開箱即用的完整畫面:下單面板、圖表上的委託與部位、可拖曳的停損與停利、自選清單、警示與K線回放。

API: subscribeQuotes