FutureRealTimeBidAskMessage constructor

FutureRealTimeBidAskMessage({
  1. String? code,
  2. String? dateTime,
  3. Int64? bidTotalVol,
  4. Int64? askTotalVol,
  5. Iterable<double>? bidPrice,
  6. Iterable<Int64>? bidVolume,
  7. Iterable<Int64>? diffBidVol,
  8. Iterable<double>? askPrice,
  9. Iterable<Int64>? askVolume,
  10. Iterable<Int64>? diffAskVol,
  11. double? firstDerivedBidPrice,
  12. double? firstDerivedAskPrice,
  13. Int64? firstDerivedBidVol,
  14. Int64? firstDerivedAskVol,
  15. double? underlyingPrice,
  16. bool? simtrade,
})

Implementation

factory FutureRealTimeBidAskMessage({
  $core.String? code,
  $core.String? dateTime,
  $fixnum.Int64? bidTotalVol,
  $fixnum.Int64? askTotalVol,
  $core.Iterable<$core.double>? bidPrice,
  $core.Iterable<$fixnum.Int64>? bidVolume,
  $core.Iterable<$fixnum.Int64>? diffBidVol,
  $core.Iterable<$core.double>? askPrice,
  $core.Iterable<$fixnum.Int64>? askVolume,
  $core.Iterable<$fixnum.Int64>? diffAskVol,
  $core.double? firstDerivedBidPrice,
  $core.double? firstDerivedAskPrice,
  $fixnum.Int64? firstDerivedBidVol,
  $fixnum.Int64? firstDerivedAskVol,
  $core.double? underlyingPrice,
  $core.bool? simtrade,
}) {
  final $result = create();
  if (code != null) {
    $result.code = code;
  }
  if (dateTime != null) {
    $result.dateTime = dateTime;
  }
  if (bidTotalVol != null) {
    $result.bidTotalVol = bidTotalVol;
  }
  if (askTotalVol != null) {
    $result.askTotalVol = askTotalVol;
  }
  if (bidPrice != null) {
    $result.bidPrice.addAll(bidPrice);
  }
  if (bidVolume != null) {
    $result.bidVolume.addAll(bidVolume);
  }
  if (diffBidVol != null) {
    $result.diffBidVol.addAll(diffBidVol);
  }
  if (askPrice != null) {
    $result.askPrice.addAll(askPrice);
  }
  if (askVolume != null) {
    $result.askVolume.addAll(askVolume);
  }
  if (diffAskVol != null) {
    $result.diffAskVol.addAll(diffAskVol);
  }
  if (firstDerivedBidPrice != null) {
    $result.firstDerivedBidPrice = firstDerivedBidPrice;
  }
  if (firstDerivedAskPrice != null) {
    $result.firstDerivedAskPrice = firstDerivedAskPrice;
  }
  if (firstDerivedBidVol != null) {
    $result.firstDerivedBidVol = firstDerivedBidVol;
  }
  if (firstDerivedAskVol != null) {
    $result.firstDerivedAskVol = firstDerivedAskVol;
  }
  if (underlyingPrice != null) {
    $result.underlyingPrice = underlyingPrice;
  }
  if (simtrade != null) {
    $result.simtrade = simtrade;
  }
  return $result;
}