From 21a47e2d43955964d5dcfb6ce8e75f773b47110c Mon Sep 17 00:00:00 2001 From: Taha Afzal Date: Tue, 9 Oct 2018 12:13:54 -0400 Subject: [PATCH] VAP merging into 1659 made the price go to NAN because of the PrizeSize changes --- src/server/sparkd/md/ChannelVolume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());