volume is tricky

This commit is contained in:
Kevin Darby committed 2019-04-30 15:09:53 -04:00
1 parent 134950747f
commit ca8e540453
1 file changed
+2 -1
+2 -1
View File
@@ -104,7 +104,8 @@ void MDProducerHandle::set_status(CoconutSecurityStatus status) {
void MDProducerHandle::add_trade(TimeStamp time, const PriceSize price, LLDateTime tradetime, co2::AggressorSide agside, uint32_t volume) {
cdata().last_trade.store(price, time);
cdata().last_trade_time = tradetime;
cdata().total_volume = volume;
if (volume > 0)
cdata().total_volume = volume;
if (key() != invalid_security_key) {
co2::TradeMessage trade;