Fixed NaN price in order entry.
This commit is contained in:
1 parent
750b166d82
commit
5d930d40bf
1 file changed
+2
-2
@@ -154,9 +154,9 @@ void ExecutionGateway::on_exe_report(
|
||||
securities::decode_exchange_price(*sec, Price(msg.get<fix::Price>()));
|
||||
|
||||
if (msg.has<fix::StopPx>())
|
||||
data->price = securities::decode_exchange_price(*sec, Price(msg.get<fix::StopPx>()));
|
||||
data->stop_price = securities::decode_exchange_price(*sec, Price(msg.get<fix::StopPx>()));
|
||||
else
|
||||
data->price = Price (os::nan());
|
||||
data->stop_price = Price (os::nan());
|
||||
data->quantity = Quantity(msg.get<fix::OrderQty>());
|
||||
data->filled_quantity = Quantity(msg.get<fix::CumQty>());
|
||||
data->last_shares = msg.has<fix::LastShares>()
|
||||
|
||||
Reference in new issue
Block a user