Fixing merge conflict

This commit is contained in:
Taha Afzal committed 2020-09-01 14:21:49 -04:00
commit ecb3893370
13 files changed
+60 -29

No files matched your search

+8 -1
View File
@@ -44,6 +44,7 @@ std::map<std::string, std::function<int(std::vector<std::string> const &)>>
}
void on_real_time_event(MDP3Event const &ev) override {
for (auto s : ev.affected_securities) {
auto it = orders.find(s->security_id());
if (it == orders.end()) {
@@ -72,7 +73,13 @@ std::map<std::string, std::function<int(std::vector<std::string> const &)>>
}
auto current_orders = s->orders();
add_iceberg_annotation(current_orders);
bts_assert(!matcher.has_same_orders(current_orders).has_value());
if (matcher.has_same_orders(current_orders).has_value()) {
std::cout << "Failing on event:\n " << ev.event_id << std::endl;
std::cout << "Old Orders:\n " << std::endl << old_orders ;
std::cout << "Deduced:\n " << deduced << std::endl;
std::cout << "Expected:\n " << s->order_changes() << std::endl;
bts_assert(false);
}
old_orders = current_orders;
} else {
it->second = s->orders();