From c0f4090d70e7da73503f9886c332091c6dd7423c Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 14 Aug 2025 03:54:33 +0000 Subject: [PATCH] fix: Add error_msg to PyExecutionReport json fmt --- .../python_interop/execution/py_execution_report.cpp | 2 ++ 1 file changed, 2 insertions(+) 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