fix: Add error_msg to PyExecutionReport json fmt

This commit is contained in:
John Colvin committed 2025-08-14 03:54:33 +00:00
1 parent 63c94e09e7
commit c0f4090d70
1 file changed
+2
@@ -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