diff --git a/src/server/sparkd/exchange_sim/ExchangeSimApplication.cpp b/src/server/sparkd/exchange_sim/ExchangeSimApplication.cpp index 9ec0ede20..159077be3 100644 --- a/src/server/sparkd/exchange_sim/ExchangeSimApplication.cpp +++ b/src/server/sparkd/exchange_sim/ExchangeSimApplication.cpp @@ -336,7 +336,7 @@ void ExchangeSimApplication::updateOrder(const Order &order, char status) { if (status == FIX::OrdStatus_FILLED || status == FIX::OrdStatus_PARTIALLY_FILLED) { fixOrder.set(FIX::LastShares(order.last_executed_quantity.value())); - fixOrder.set(FIX::LastPx(order.last_executed_quantity.value())); + fixOrder.set(FIX::LastPx(order.last_executed_price.value())); } fixOrder.getHeader().set(FIX::TargetSubID(order.sender_sub_id));