diff --git a/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/matcher/validation/matcher_validation_observer.cpp b/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/matcher/validation/matcher_validation_observer.cpp index a08e34a31..e45cbc5a8 100644 --- a/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/matcher/validation/matcher_validation_observer.cpp +++ b/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/matcher/validation/matcher_validation_observer.cpp @@ -25,7 +25,7 @@ // immediate console output (i.e., calls to std::cout). // If _ECHO_ON is defined, the _ERROR_LEVEL macro is set to Info // to avoid duplicate, and (perhaps more importantly) unsynchronized output. -#define _ECHO_ON +// #define _ECHO_ON #ifdef _ECHO_ON #define _ECHO(...) std::cout << bts::orderman::Formatter::fmt(__VA_ARGS__); #define _ERROR_LEVEL Info @@ -61,7 +61,7 @@ enum class Verbosity { Minimal = 0, Normal = 1, Verbose = 2 }; inline std::string _log_header() { return "MatcherValidationObserver"; } inline bool _is_interesting_sec(const InstrumentSnapshot& s) { - return s.definition().asset() == "GC"; + return s.definition().asset() == "ES"; //return strcmp(s.definition().asset(), "SI") == 0; } @@ -146,7 +146,6 @@ inline bool match_fills(const FillDepot& fd, std::vectorverbosity > Verbosity::Minimal) { - // describe the changes in this event (summary has ) - std::stringstream snap_str; - diagnostics::print_instrument_snapshots(sorted_secs.begin(), sorted_secs.end(), snap_str); - snap_str << std::endl; - INFO("snapshot summary:\n", snap_str.str()); - for (const auto* s : sorted_secs) { - // print fills - if (s->fills().size()) { - std::stringstream str; - diagnostics::print_fills(s->fills().begin(), s->fills().end(), str); - INFO(s->symbol(), " fills:\n", str.str(), "\n"); - } - // print actual changes - if (s->order_changes().size()) { - std::stringstream str; - diagnostics::print_order_changes(s->order_changes().begin(), s->order_changes().end(), str); - INFO(s->symbol(), " net changes:\n", str.str(), "\n"); - } - // print deduced changes - auto deduced = s->deduced_order_changes(); - if (deduced.size()) { - std::stringstream str; - diagnostics::print_order_changes(deduced.begin(), deduced.end(), str); - INFO(s->symbol(), " deduced changes:\n", str.str(), "\n"); - } - } - } // securities must be added to the matcher before the order // changes are processed to ensure the correct implied markets are used. for (const auto* s : sorted_secs) {