Fixed reporting of event id in shout outcome in sniper.

This commit is contained in:
Pedro Pinto committed 2020-10-14 10:07:04 -04:00
1 parent f1b91625e2
commit ef849f04a4
1 file changed
+4 -3
@@ -259,9 +259,10 @@ void Sniper::operator()(const OrderUpdate &update) {
}
PandL pandl(me->sim->instruments());
me->sim->log(
"shot_outcome", me->event_id, in_flight.target.descriptor,
in_flight.target.product, in_flight.target.n_abs_contracts,
in_flight.target.value_in_ticks(), in_flight.quantity.value(),
"shot_outcome", in_flight.observed_event_id,
in_flight.target.descriptor, in_flight.target.product,
in_flight.target.n_abs_contracts, in_flight.target.value_in_ticks(),
in_flight.quantity.value(),
in_flight.value_at_observation_ts * in_flight.quantity.value(),
pandl.net_cash(all_fills), in_flight.observed_ts.value(),
me->sim->now().value());