69 種繪圖工具
程式碼
閱讀文件 →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,
// 69 drawing tools in the left toolbar; they are saved with the layout
persistLayouts: true,
})● 模擬行情資料,在你的瀏覽器中產生
開箱即用的完整畫面:下單面板、圖表上的委託與部位、可拖曳的停損與停利、自選清單、警示與K線回放。
API: addDrawing



