Fixed parsing of stop px in link3.

This commit is contained in:
Pedro Pinto committed 2020-07-07 20:19:41 -04:00
1 parent 7f53d8b161
commit a296e1e772
1 file changed
+3 -1
@@ -54,7 +54,9 @@ void IL3ExecutionReportParser::parse_common(const T &msg,
*sec, Price{price.mantissa() * md::pow10(price.exponent())});
data->quantity = Quantity{msg.orderQty()};
data->side = map_side(msg.side());
data->stop_price = Price{0.0};
auto &stop_price = const_cast<T&>(msg).stopPx();
data->stop_price = securities::decode_exchange_price(
*sec, Price{stop_price.mantissa() * md::pow10(stop_price.exponent())});
data->time_in_force = map_time_in_force(msg.timeInForce());
data->transact_time = ExchangeTimeStamp64{msg.transactTime()};
data->ice_cl_ord_id = 0;