ChartOrder constructor

const ChartOrder({
  1. required String id,
  2. required String symbol,
  3. required OrderSide side,
  4. OrderType type = OrderType.limit,
  5. required double price,
  6. double quantity = 1.0,
  7. double? takeProfitPrice,
  8. double? stopLossPrice,
  9. String? customLabel,
  10. OrderStatus status = OrderStatus.active,
  11. Map<String, dynamic>? metadata,
})

Implementation

const ChartOrder({
  required this.id,
  required this.symbol,
  required this.side,
  this.type = OrderType.limit,
  required this.price,
  this.quantity = 1.0,
  this.takeProfitPrice,
  this.stopLossPrice,
  this.customLabel,
  this.status = OrderStatus.active,
  this.metadata,
});