SnapshotMessage constructor
SnapshotMessage({
- Int64? ts,
- String? code,
- String? exchange,
- double? open,
- double? high,
- double? low,
- double? close,
- String? tickType,
- double? changePrice,
- double? changeRate,
- String? changeType,
- double? averagePrice,
- Int64? volume,
- Int64? totalVolume,
- Int64? amount,
- Int64? totalAmount,
- double? yesterdayVolume,
- double? buyPrice,
- double? buyVolume,
- double? sellPrice,
- Int64? sellVolume,
- double? volumeRatio,
Implementation
factory SnapshotMessage({
$fixnum.Int64? ts,
$core.String? code,
$core.String? exchange,
$core.double? open,
$core.double? high,
$core.double? low,
$core.double? close,
$core.String? tickType,
$core.double? changePrice,
$core.double? changeRate,
$core.String? changeType,
$core.double? averagePrice,
$fixnum.Int64? volume,
$fixnum.Int64? totalVolume,
$fixnum.Int64? amount,
$fixnum.Int64? totalAmount,
$core.double? yesterdayVolume,
$core.double? buyPrice,
$core.double? buyVolume,
$core.double? sellPrice,
$fixnum.Int64? sellVolume,
$core.double? volumeRatio,
}) {
final $result = create();
if (ts != null) {
$result.ts = ts;
}
if (code != null) {
$result.code = code;
}
if (exchange != null) {
$result.exchange = exchange;
}
if (open != null) {
$result.open = open;
}
if (high != null) {
$result.high = high;
}
if (low != null) {
$result.low = low;
}
if (close != null) {
$result.close = close;
}
if (tickType != null) {
$result.tickType = tickType;
}
if (changePrice != null) {
$result.changePrice = changePrice;
}
if (changeRate != null) {
$result.changeRate = changeRate;
}
if (changeType != null) {
$result.changeType = changeType;
}
if (averagePrice != null) {
$result.averagePrice = averagePrice;
}
if (volume != null) {
$result.volume = volume;
}
if (totalVolume != null) {
$result.totalVolume = totalVolume;
}
if (amount != null) {
$result.amount = amount;
}
if (totalAmount != null) {
$result.totalAmount = totalAmount;
}
if (yesterdayVolume != null) {
$result.yesterdayVolume = yesterdayVolume;
}
if (buyPrice != null) {
$result.buyPrice = buyPrice;
}
if (buyVolume != null) {
$result.buyVolume = buyVolume;
}
if (sellPrice != null) {
$result.sellPrice = sellPrice;
}
if (sellVolume != null) {
$result.sellVolume = sellVolume;
}
if (volumeRatio != null) {
$result.volumeRatio = volumeRatio;
}
return $result;
}