Address review

This commit is contained in:
Martin Molinero
2019-08-20 19:22:18 -03:00
parent 7cd1c18887
commit 6b00a97b0d
2 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -42,4 +42,8 @@ class CustomBenchmarkAlgorithm(QCAlgorithm):
'''OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.'''
if not self.Portfolio.Invested:
self.SetHoldings("SPY", 1)
self.Debug("Purchased Stock")
self.Debug("Purchased Stock")
tupleResult = SymbolCache.TryGetSymbol("AAPL", None)
if tupleResult[0]:
raise Exception("Benchmark Symbol is not expected to be added to the Symbol cache")