diff --git a/src/lib/api/md/CboeMarketDataConfig.proto b/src/lib/api/md/CboeMarketDataConfig.proto index 81bc3887b..9b6013d51 100644 --- a/src/lib/api/md/CboeMarketDataConfig.proto +++ b/src/lib/api/md/CboeMarketDataConfig.proto @@ -11,6 +11,8 @@ message CboeMarketDataConfig { uint32 unique_check_value = 1; bool use_databento = 10; bool read_from_file = 20; + string contracts_file_name = 30; + string bbo_file_name = 40; //uint32 num_depth_levels = 1; //uint32 depth_throttle_ms = 2; bts.api.domain.SecurityCriteria security_criteria = 3; diff --git a/src/server/sparkd/md/cboe/CboeMarketDataHandler.cpp b/src/server/sparkd/md/cboe/CboeMarketDataHandler.cpp index a7c60cb5c..3ef7ecafc 100644 --- a/src/server/sparkd/md/cboe/CboeMarketDataHandler.cpp +++ b/src/server/sparkd/md/cboe/CboeMarketDataHandler.cpp @@ -15,12 +15,18 @@ void CboeMarketDatahandler::run( bool use_file, std::shared_ptr listner, std::shared_ptr sec_id_store, - bts::api::domain::Venue venue) { - std::string contratcs_file_name = "/opra-pillar-20240815.definition.dbn.zst"; - std::string bbo_file_name = "/opra-pillar-20240815.mbp-1.dbn.zst"; + bts::api::domain::Venue venue, + const std::string& contracts_file_name, + const std::string& bbo_file_name) { std::string base_path = config::get().data_path(); - DatabentoHandler::DatabentoDatahandler::run(use_file, listner,sec_id_store,venue,base_path + contratcs_file_name,base_path + bbo_file_name); + DatabentoHandler::DatabentoDatahandler::run( + use_file, + listner, + sec_id_store, + venue, + base_path + contracts_file_name, + base_path + bbo_file_name); } } // namespace bts::md::cboe \ No newline at end of file