self.SetCash(100000)

        start_time = datetime(2022, 1, 1)

        end_time = datetime(2022, 1, 4)

       

 

        stocks = ["UNH", "GS", "HD", "MSFT", "MCD", "AMGN", "V", "CRM", "CAT", "HON"]

        stock_symbols = [self.AddEquity(stock, Resolution.Daily).Symbol for stock in stocks]

 

        self.stocks_df = self.History(stock_symbols,start_time,end_time)

 

       self.Debug(f"Stocks Historical DataFrame:\n{self.stocks_df.to_string()}")
         if not self.stocks_df.empty:

            for symbol in stock_symbols:

                symbol_bars = self.stocks_df.loc[symbol]  # or use the string representation of the symbol

                self.Debug(f"{symbol} Bars:\n{symbol_bars.to_string()}")

                close_diff = symbol_bars["close"].diff()

                self.Debug(f"{symbol} Close Price Difference:\n{close_diff.to_string()}")
 

 

    

It's a quite simple code.I don't know why i can't get the history data this way.  OUTPUT:Stocks Historical DataFrame: Empty DataFrame Columns: [] Index: []