Fix: DATABENTO live working
This commit is contained in:
1 parent
bcc2c4a514
commit
fb8b2d28f3
1 file changed
+2
-2
@@ -178,7 +178,7 @@ void DatabentoDatahandler::run(
|
||||
//hardcoding for now will update later
|
||||
switch (venue) {
|
||||
case api::domain::VENUE_CBOE:
|
||||
client.Subscribe({"SPX.OPT","SPXW.OPT"}, databento::Schema::Definition, databento::SType::Parent);
|
||||
client.Subscribe({"SPX.OPT","SPXW.OPT"}, databento::Schema::Definition, databento::SType::Parent,databento::UnixNanos{});
|
||||
client.Subscribe({"SPX.OPT","SPXW.OPT"}, databento::Schema::Mbp1, databento::SType::Parent);
|
||||
break;
|
||||
case api::domain::VENUE_GLBX:
|
||||
@@ -192,7 +192,7 @@ void DatabentoDatahandler::run(
|
||||
client.Start();
|
||||
while (true) {
|
||||
try {
|
||||
auto* record = client.NextRecord(std::chrono::seconds{5});
|
||||
auto* record = client.NextRecord(std::chrono::seconds{500});
|
||||
if (record == nullptr) {
|
||||
LOG(md, Error, "Timed out waiting for data");
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user