Hi

I'm trying to use DateTime ,but the system is showing me wrong dates (today is the 24th). it shows me the sys date is yesterday , and History shows me other dates.

 

today = datetime.today()
yesterday = today - timedelta(1)

self.History(["AAPL"], 2, Resolution.Daily)

I get:

symbol time AAPL 2018-07-20 189.69 192.55 189.69 191.97 10759095.0 2018-07-21 191.76 192.50 190.17 191.67 12492459.0

Author