refactor: Move ExecutionReportStore to lib_spark

From lib_binance_execution
This commit is contained in:
John Colvin committed 2025-06-16 11:08:55 -04:00
1 parent 3ae3a7094e
commit e75be2da2f
5 files changed
+10 -10

No files matched your search

@@ -4,7 +4,6 @@
#include "binance_execution/cross_margin/rest_api_client.h"
#include "binance_execution/cross_margin/side_effect_type.h"
#include "binance_execution/cross_margin/trade_data_stream/trade_data_subscription.h"
#include "binance_execution/execution_report_store.h"
#include "binance_execution/gateway_config.h"
#include "binance_execution/listen_key_requestor.h"
#include "binance_execution/order_key_map.h"
@@ -28,6 +27,7 @@
#include "spark/orderman/events/NewSecuritiesEvent.h"
#include "spark/orderman/orderman_utils/ExchangePosition.h"
#include "spark/orderman/orderman_utils/ExecutionReport.h"
#include "spark/orderman/orderman_utils/execution_report_store.h"
#include "spark/orderman/orderman_utils/orderman_common.h"
#include "spark/utils/overloaded.h"
@@ -60,6 +60,7 @@ using bts::orderman::CancelOrderMsg;
using bts::orderman::CancelReplaceOrderMsg;
using bts::orderman::CreateOrderMsg;
using bts::orderman::ExecutionReport;
using bts::orderman::ExecutionReportStore;
using bts::orderman::NewAdminDataEvent;
using bts::orderman::NewSecuritiesEvent;
using bts::orderman::OrderMsg;
@@ -1,6 +1,5 @@
#include "spots_gateway.h"
#include "binance_execution/enums/api_key_type.h"
#include "binance_execution/execution_report_store.h"
#include "binance_execution/gateway_config.h"
#include "binance_execution/listen_key_requestor.h"
#include "binance_execution/order_key_map.h"
@@ -42,6 +41,7 @@
#include "spark/orderman/log_messages/modify_order_log.h"
#include "spark/orderman/orderman_utils/ExchangePosition.h"
#include "spark/orderman/orderman_utils/ExecutionReport.h"
#include "spark/orderman/orderman_utils/execution_report_store.h"
#include "spark/orderman/orderman_utils/orderman_common.h"
#include "spark/utils/Delegate.h"
#include "spark/utils/Uuid.h"
@@ -149,7 +149,7 @@ struct SpotsGateway::PImpl {
ExecutionGatewayCallbacks callbacks;
bts::orderman::ExchangePosition pos;
bts::api::admin::BTSAccount account;
ExecutionReportStore orders;
bts::orderman::ExecutionReportStore orders;
tuple<string, string, Delegate<void(const json &)> &> build_request(
const string &method) {
@@ -1,7 +1,6 @@
#include "usds_futures_gateway.h"
#include "binance_execution/enums/order_status.h"
#include "binance_execution/enums/time_in_force.h"
#include "binance_execution/execution_report_store.h"
#include "binance_execution/gateway_config.h"
#include "binance_execution/listen_key_requestor.h"
#include "binance_execution/position_calculator.h"
@@ -46,6 +45,7 @@
#include "spark/orderman/log_messages/modify_order_log.h"
#include "spark/orderman/orderman_utils/ExchangePosition.h"
#include "spark/orderman/orderman_utils/ExecutionReport.h"
#include "spark/orderman/orderman_utils/execution_report_store.h"
#include "spark/orderman/orderman_utils/orderman_common.h"
#include "spark/utils/Uuid.h"
#include "spark/utils/bts_lock_guard.h"
@@ -112,6 +112,7 @@ using bts::orderman::CancelOrderMsg;
using bts::orderman::CancelReplaceOrderMsg;
using bts::orderman::CreateOrderMsg;
using bts::orderman::ExecutionReport;
using bts::orderman::ExecutionReportStore;
using bts::orderman::NewAdminDataEvent;
using bts::orderman::NewSecuritiesEvent;
using bts::orderman::OrderKey;
@@ -6,7 +6,7 @@
#include <limits>
namespace binance_execution {
namespace bts::orderman {
using bts::orderman::ExecutionReport;
using std::uint64_t;
@@ -82,4 +82,4 @@ std::shared_ptr<const ExecutionReport> ExecutionReportStore::set_error(
return store.get_or_add(key, init);
}
} // namespace binance_execution
} // namespace bts::orderman
@@ -15,11 +15,9 @@ class JetFIX_Connection;
}
namespace bts::orderman {
struct CreateOrderMsg;
class ExecutionReport;
} // namespace bts::orderman
namespace binance_execution {
class ExecutionReportStore {
std::string account;
@@ -56,4 +54,4 @@ class ExecutionReportStore {
bts::orderman::OrderKey key, const std::string &error);
};
} // namespace binance_execution
} // namespace bts::orderman