Add: databento repllay filename to cofig
This commit is contained in:
1 parent
0b3183fd30
commit
ceb8a68902
2 files changed
+12
-4
No files matched your search
@@ -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;
|
||||
|
||||
@@ -15,12 +15,18 @@ void CboeMarketDatahandler::run(
|
||||
bool use_file,
|
||||
std::shared_ptr<IMarketDataListener> listner,
|
||||
std::shared_ptr<persistence::IDGenerator> 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<bts::config::SystemConfig>().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
|
||||
Reference in new issue
Block a user