fix: Include fill id in format str for ExecutionReport
This commit is contained in:
1 parent
453d516acf
commit
90f2a80568
1 file changed
+3
-3
@@ -44,13 +44,13 @@ struct fmt::formatter<bts::orderman::ExecutionReportLog> {
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user