VAP merging into 1659 made the price go to NAN because of the PrizeSize changes
This commit is contained in:
1 parent
8cbe6d7199
commit
21a47e2d43
1 file changed
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user