Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion QuantConnect.DataBento/DataBentoHistoryProivder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public override void Initialize(HistoryProviderInitializeParameters parameters)
{
_invalidSecurityTypeWarningFired = true;
Log.Trace($"{nameof(DataBentoProvider)}.{nameof(GetHistory)}:" +
$"Unsupported SecurityType '{historyRequest.Symbol.SecurityType}' for symbol '{historyRequest.Symbol}'.");
$"History request not supported for symbol '{historyRequest.Symbol}' (SecurityType: {historyRequest.Symbol.SecurityType}, Canonical: {historyRequest.Symbol.IsCanonical()}).");
}
return null;
}
Expand Down
15 changes: 12 additions & 3 deletions QuantConnect.DataBento/Models/DataSetSpecifications.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public static class PredefinedDataSets
/// </summary>
public class DataSetSpecifications
{
private static readonly Lock _lock = new();
/// <summary>
/// Internal flag to ensure the delay warning message is only generated once.
/// </summary>
Expand Down Expand Up @@ -117,13 +118,21 @@ public bool TryGetDelayWarningMessage(out string? message)
{
return false;
}
message = $"Dataset [{DataSetID}] historical data information:\n" +
lock (_lock)
{
if (_delayWarningFired)
{
return false;
}

message = $"Dataset [{DataSetID}] historical data information:\n" +
$"- Users with a live license: delayed by approximately {HistoricalDelayWithLicense}." +
$"For access to more recent data, use the intraday replay feature of the live data client.\n" +
$"- Users without a license: delayed by {HistoricalDelayWithoutLicense}.\n" +
$"- More information: {Link} (go to the 'Specifications' tab)";

_delayWarningFired = true;
return true;
_delayWarningFired = true;
return true;
}
}
}