From 90f2a8056815aa1825a6f460bae8b6cb413c1911 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 6 Jun 2025 17:34:55 +0000 Subject: [PATCH] fix: Include fill id in format str for ExecutionReport --- .../spark/orderman/log_messages/execution_report_log.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib_spark/spark/orderman/log_messages/execution_report_log.h b/src/lib_spark/spark/orderman/log_messages/execution_report_log.h index cc1252124..ddaab260f 100644 --- a/src/lib_spark/spark/orderman/log_messages/execution_report_log.h +++ b/src/lib_spark/spark/orderman/log_messages/execution_report_log.h @@ -44,13 +44,13 @@ struct fmt::formatter { std::string user = bts::orderman::to_trim_str(r.operator_id); return fmt::format_to( ctx.out(), - R"({{ "acc": "{}", "u": "{}", "id": {}, "sid": {}, "sec": "{}", "s": "{}", "exch": "{}", "eid": "{}", "p": {:.6f}, "q": {:.6f}, "fq": {}, "lq": {}, "typ": "{}", "tif": "{}", "nst": "{}", "d": {}, "ts": {} }})", + R"({{ "acc": "{}", "u": "{}", "id": {}, "sid": {}, "sec": "{}", "s": "{}", "exch": "{}", "eid": "{}", "p": {:.6f}, "q": {:.6f}, "fq": {}, "lq": {}, "typ": "{}", "tif": "{}", "nst": "{}", "fid": "{}", "d": {}, "ts": {} }})", r.account_name, std::move(user), r.order_key, l.sec_id, l.sec_name, r.side == bts::api::SIDE_BUY ? 'B' : 'S', r.exchange, l.exch_id, r.price.value(), r.quantity.full_value(), r.filled_quantity.full_value(), r.last_shares.full_value(), - r.order_type, r.time_in_force, r.order_status, l.data.dump(), - l.timestamp); + r.order_type, r.time_in_force, r.order_status, r.exchange_fill_id, + l.data.dump(), l.timestamp); } };