관심종목과 종목 정보
코드
문서 보기 →import { ChartWidget } from '@tradecanvas/chart/widget'
// feed: your DataAdapter (a WebSocketAdapter, or your own class)
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'BTCUSDT',
timeframe: '5m',
theme: 'light',
adapter: feed,
watchlist: {
lists: [{ id: 'main', name: 'Main', symbols: ['AAPL', 'MSFT', 'NVDA', 'BTCUSDT', 'EURUSD'] }],
},
// the rows tick from feed.subscribeQuotes()
})
// The panels start shut: open the watchlist beside the chart.
widget.openPanel('watchlist')import { ChartWidget } from '@tradecanvas/chart/widget'
// feed: your DataAdapter (a WebSocketAdapter, or your own class)
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'BTCUSDT',
timeframe: '5m',
theme: 'dark',
adapter: feed,
watchlist: {
lists: [{ id: 'main', name: 'Main', symbols: ['AAPL', 'MSFT', 'NVDA', 'BTCUSDT', 'EURUSD'] }],
},
// the rows tick from feed.subscribeQuotes()
})
// The panels start shut: open the watchlist beside the chart.
widget.openPanel('watchlist')● 브라우저에서 생성한 시뮬레이션 시장 데이터
바로 쓰는 완성 화면: 주문창, 차트 위 주문과 포지션, 끌어서 옮기는 손절과 익절, 관심종목, 알림, 봉 리플레이.
API: subscribeQuotes







