TradeOrder constructor

TradeOrder({
  1. List<int>? sender,
  2. String? id,
  3. String? symbol,
  4. Int64? ordertype,
  5. Int64? side,
  6. Int64? price,
  7. Int64? quantity,
  8. Int64? timeinforce,
})

Implementation

factory TradeOrder({
  $core.List<$core.int>? sender,
  $core.String? id,
  $core.String? symbol,
  $fixnum.Int64? ordertype,
  $fixnum.Int64? side,
  $fixnum.Int64? price,
  $fixnum.Int64? quantity,
  $fixnum.Int64? timeinforce,
}) {
  final _result = create();
  if (sender != null) {
    _result.sender = sender;
  }
  if (id != null) {
    _result.id = id;
  }
  if (symbol != null) {
    _result.symbol = symbol;
  }
  if (ordertype != null) {
    _result.ordertype = ordertype;
  }
  if (side != null) {
    _result.side = side;
  }
  if (price != null) {
    _result.price = price;
  }
  if (quantity != null) {
    _result.quantity = quantity;
  }
  if (timeinforce != null) {
    _result.timeinforce = timeinforce;
  }
  return _result;
}