I'm making a mistake in in using the history function. Here's a code snippet that I'm trying

 

        self.symbols = [self.AddEquity(ticker).Symbol
            for ticker in ['SPY,  'GLD'] ]  

        self.lookback = 300

        history = self.History(
            self.symbols, 
            self.lookback,
            Resolution.Daily).close.unstack(level=0)

 

The history object does'nt have any data. I'm copying this code from the sample BetaAlgorithm. Any suggestions on what I'm missing?