Reported stop px in order state

This commit is contained in:
Pedro Pinto committed 2020-02-25 14:30:26 -05:00
1 parent a1f71153c8
commit 78dfb03b8e
3 files changed
+9 -3

No files matched your search

+3 -1
View File
@@ -314,7 +314,8 @@ NativeOrder::on_init_from_exe_report(ExecutionReport const &er,
native_state.set_exchange_order_id(to_trim_str(er.exchange_order_id));
native_state.set_last_msg_seq_num(er.msg_seq_num);
native_state.set_native_type(er.order_type);
native_state.set_stop_px(er.stop_price.value());
auto &rr = *native_state.mutable_routing_record();
rr.set_session(er.cfg->name());
rr.set_account(to_trim_str(er.account_name));
@@ -922,6 +923,7 @@ void NativeOrder::on_exe_report(const NewExecutionReportEvent &er) {
native_state.set_native_status(er.data->order_status);
native_state.set_native_type(er.data->order_type);
native_state.set_stop_px(er.data->stop_price.value());
bool got_first_exchange_order_id = !has_exchange_order_id();
if (got_first_exchange_order_id) {