MarketDepthInfo constructor

MarketDepthInfo({
  1. String? currencyCode,
  2. Iterable<double>? buyPrices,
  3. Iterable<double>? buyDepth,
  4. Iterable<double>? sellPrices,
  5. Iterable<double>? sellDepth,
})

Implementation

factory MarketDepthInfo({
  $core.String? currencyCode,
  $core.Iterable<$core.double>? buyPrices,
  $core.Iterable<$core.double>? buyDepth,
  $core.Iterable<$core.double>? sellPrices,
  $core.Iterable<$core.double>? sellDepth,
}) {
  final $result = create();
  if (currencyCode != null) {
    $result.currencyCode = currencyCode;
  }
  if (buyPrices != null) {
    $result.buyPrices.addAll(buyPrices);
  }
  if (buyDepth != null) {
    $result.buyDepth.addAll(buyDepth);
  }
  if (sellPrices != null) {
    $result.sellPrices.addAll(sellPrices);
  }
  if (sellDepth != null) {
    $result.sellDepth.addAll(sellDepth);
  }
  return $result;
}