도킹된 주문 티켓
코드
문서 보기 →import { ChartWidget } from '@tradecanvas/chart/widget'
import { PaperExecutionAdapter } from '@tradecanvas/chart'
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'BTCUSDT',
timeframe: '1m',
theme: 'light', // no ui: 3.0's default look is Graphite
adapter: feed,
trading: true,
})
// Orders go to your broker through an execution adapter; this one is a paper account.
const chart = widget.getChart()
chart.connectExecution(new PaperExecutionAdapter({ markPrice: lastPrice, balance: 100_000, leverage: 5 }))
// The ticket docks beside the chart, with Available from the account.
widget.openPanel('orderTicket')import { ChartWidget } from '@tradecanvas/chart/widget'
import { PaperExecutionAdapter } from '@tradecanvas/chart'
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'BTCUSDT',
timeframe: '1m',
theme: 'dark', // no ui: 3.0's default look is Graphite
adapter: feed,
trading: true,
})
// Orders go to your broker through an execution adapter; this one is a paper account.
const chart = widget.getChart()
chart.connectExecution(new PaperExecutionAdapter({ markPrice: lastPrice, balance: 100_000, leverage: 5 }))
// The ticket docks beside the chart, with Available from the account.
widget.openPanel('orderTicket')● 브라우저에서 생성한 시뮬레이션 시장 데이터
바로 쓰는 완성 화면: 주문창, 차트 위 주문과 포지션, 끌어서 옮기는 손절과 익절, 관심종목, 알림, 봉 리플레이.
API: openPanel('orderTicket')







