DemosTicket de órdenes acoplado

Ticket de órdenes acoplado

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')

● Datos de mercado simulados, generados en tu navegador

Una pantalla completa lista para usar: ticket de orden, órdenes y posiciones en el gráfico, stop-loss y take-profit que se arrastran, listas de seguimiento, alertas y repetición de barras.

API: openPanel('orderTicket')