I have an account in America/Los_Angeles timezone and I’m retrieving Day level data from the API. I’m planning to run the code o retrieve data every week for the last 7 days. So the start_time and end_time must be assigned dynamically.
But the problem is that the code seems to work fine when the dates are assigned manually but when done using Python code,it throws the following error.
In one particular instance. when the start_time = ‘2015-09-01T07:00:00Z’ and end_time = ‘2016-02-20T07:00:00Z’, it worked fine but with start_time=‘2016-01-28T07:00:00Z’ and end_time = ‘2016-02-04T07:00:00Z’, it throws the above error.