Fix failing regression algorithm tests - associated issue is #3597
This commit is contained in:
committed by
Martin Molinero
parent
56462f0283
commit
ba424cd5b6
@@ -51,7 +51,11 @@ class CustomDataAddDataOnSecuritiesChangedRegressionAlgorithm(QCAlgorithm):
|
||||
raise Exception(f"Custom data undelrying ({customSymbol.Underlying}) Symbol was not found in active securities")
|
||||
|
||||
def OnSecuritiesChanged(self, changes):
|
||||
self.customSymbols = []
|
||||
iterated = False
|
||||
|
||||
for added in [i for i in changes.AddedSecurities if i.Symbol.SecurityType == SecurityType.Equity]:
|
||||
if not iterated:
|
||||
self.customSymbols = []
|
||||
iterated = True
|
||||
|
||||
for added in changes.AddedSecurities:
|
||||
self.customSymbols.append(self.AddData(SECReport8K, added.Symbol, Resolution.Daily).Symbol)
|
||||
|
||||
Reference in New Issue
Block a user