From c0025b08c5de1280400f29b6ebb7fd596e044a1a Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 20 Mar 2018 12:25:22 -0400 Subject: [PATCH] SPARK-693, simulator fills are tagged with correct price --- src/server/sparkd/exchange_sim/ExchangeSimApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));