SPARK-1175, Picked price of the resting rather than the aggressor
This commit is contained in:
1 parent
7a74c5852a
commit
1b100bccf7
4 files changed
+15
-2
No files matched your search
@@ -242,6 +242,7 @@ void ExchangeSimApplication::onMessage(const FIX42::NewOrderSingle &message,
|
||||
order.set_last_executed_price(0);
|
||||
order.set_last_executed_quantity(0);
|
||||
*order.mutable_create_time() = utils::pb::pb_now();
|
||||
*order.mutable_last_update_time() = utils::pb::pb_now();
|
||||
|
||||
updateOrder(order, FIX::OrdStatus_NEW);
|
||||
std::vector<Order> updates;
|
||||
@@ -288,6 +289,7 @@ void ExchangeSimApplication::onMessage(
|
||||
auto order_cpy = *order;
|
||||
order_cpy.set_price(price);
|
||||
order_cpy.set_quantity(orderQty);
|
||||
*order_cpy.mutable_last_update_time() = utils::pb::pb_now();
|
||||
updateOrder(order_cpy, FIX::OrdStatus_REPLACED);
|
||||
|
||||
std::vector<Order> updates;
|
||||
@@ -558,6 +560,7 @@ void ExchangeSimApplication::merge_with_md_book(std::string const &sec_desc,
|
||||
order.set_last_executed_price(0);
|
||||
order.set_last_executed_quantity(0);
|
||||
*order.mutable_create_time() = utils::pb::pb_now();
|
||||
*order.mutable_last_update_time() = utils::pb::pb_now();
|
||||
|
||||
std::vector<Order> updates;
|
||||
matcher.add_or_merge(order, &updates);
|
||||
|
||||
Reference in new issue
Block a user