diff --git a/src/lib_python_interop/python_interop/execution/py_execution_report.cpp b/src/lib_python_interop/python_interop/execution/py_execution_report.cpp index 45006220c..d888a7919 100644 --- a/src/lib_python_interop/python_interop/execution/py_execution_report.cpp +++ b/src/lib_python_interop/python_interop/execution/py_execution_report.cpp @@ -119,6 +119,7 @@ void to_json(nlohmann::json &j, const PyExecutionReport &req) { j["typ"] = req.order_type(); j["tt"] = req.transact_time(); j["tid"] = req.transact_id(); + j["msg"] = req.error_msg(); } void from_json(const nlohmann::json &j, PyExecutionReport &req) { @@ -151,6 +152,7 @@ void from_json(const nlohmann::json &j, PyExecutionReport &req) { j.at("afpx").get_to(req.avg_filled_price_); j.at("typ").get_to(req.order_type_); j.at("tt").get_to(req.transact_time_); + j.at("msg").get_to(req.error_msg_); } } // namespace python_execution