diff --git a/src/server/sparkd/md/ChannelVolume.cpp b/src/server/sparkd/md/ChannelVolume.cpp index ac047b9c5..89a6132a0 100644 --- a/src/server/sparkd/md/ChannelVolume.cpp +++ b/src/server/sparkd/md/ChannelVolume.cpp @@ -27,7 +27,7 @@ const VolumeAtPriceLevel& ChannelVolume::add_trade(const TradeMessage& m, VolumeAtPriceLevel vol; vol.set_record_id(record_id++); vol.set_security_id(m.key()); - auto p = md::PriceSize({m.mantissa(),(int8_t)m.exponent()},0); + IntPrice p = md::IntPrice (m.mantissa(),(int8_t)m.exponent()); vol.set_price(p.price()); price_map[m.mantissa()] = vol; price_it=price_map.find(m.mantissa());