Please help!

def OnDailyData(self, sender, bar):

 

self.Log(f"{bar[0].Time}")

self.Log(f"{bar[1].Time}")

why can I not do this? I created two trade bars and aggregated them into consolidated data. But how do i grab each day individually!?