Lệnh và vị thế trên biểu đồ

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,
  trading: true,       // order ticket, orders and positions on the chart
})

// Each order from the ticket, the chart or the ladder reaches you here.
widget.getChart().on('orderPlace', (order) => broker.place(order))

● Dữ liệu thị trường giả lập, sinh ngay trong trình duyệt của bạn

Một màn hình hoàn chỉnh có sẵn: phiếu lệnh, lệnh và vị thế trên biểu đồ, cắt lỗ và chốt lời kéo thả được, danh sách theo dõi, cảnh báo và tua lại nến.

Lệnh giới hạn, lệnh dừng và lệnh bracket nằm ngay trên trục giá. Kéo đường để sửa lệnh.

API: ChartWidget