VAP merging into 1659 made the price go to NAN because of the PrizeSize changes

This commit is contained in:
Taha Afzal committed 2018-10-09 12:14:05 -04:00
1 parent 8cbe6d7199
commit 21a47e2d43
1 file changed
+1 -1
+1 -1
View File
@@ -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());