專屬於你的外觀
程式碼
閱讀文件 →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,
ui: 'terminal', // or 'studio' (default), 'capsule', or your own theme
})
widget.setUI('capsule')● 模擬行情資料,在你的瀏覽器中產生
開箱即用的完整畫面:下單面板、圖表上的委託與部位、可拖曳的停損與停利、自選清單、警示與K線回放。
API: setUI



