Fix: glbx config to use databento as marketdata src
This commit is contained in:
1 parent
e3e3d42972
commit
56a4ec94a2
1 file changed
+5
-3
@@ -34,9 +34,11 @@ vector<pair<Venue, shared_ptr<IMarketDataSource>>>
|
||||
OnixsMarketDataProvider::get_sources() {
|
||||
vector<pair<Venue, shared_ptr<IMarketDataSource>>> rv;
|
||||
for (const auto &glbx : me_->config.glbx()) {
|
||||
me_->sources.push_back(
|
||||
std::make_shared<OnixsGlbxSubscription>(me_->sec_id_store, glbx));
|
||||
rv.push_back({Venue::VENUE_GLBX, me_->sources.back()});
|
||||
if(!glbx.use_databento()){
|
||||
me_->sources.push_back(
|
||||
std::make_shared<OnixsGlbxSubscription>(me_->sec_id_store, glbx));
|
||||
rv.push_back({Venue::VENUE_GLBX, me_->sources.back()});
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user