MarketDepthInfo constructor
MarketDepthInfo({})
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;
}