Timezone in get_historical_price_summaries

Hi, I'm using the below code to download historical price summaries for VOD. Is it possible to set the timezone in which start and end should be interpreted? If not what is the timezone of the result timestamps?


rdp.get_historical_price_summaries(

universe = 'VOD.L',

start = '2020-09-24',

end = '2020-09-24 15:35:01',

interval = rdp.Intervals.ONE_MINUTE, # Supported intervals: DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY.

count = 20,

fields = ['TRDPRC_1']

)


Best regards

Dennis

Best Answer

  • Hi @dennis-za.bergmann,

    From the API description in the API playground:

    start

    string


    (query)

    • The start date and timestamp of the query is in ISO8601 with UTC only e.g 2018-12-24T09:00:00.000000000Z.
    • Local time is not support.
    • This parameter support time up to nanoseconds granularity. For more details on minute summaries boundary, see "Minute Summaries Boundary" in Reference.
    • See more details on "Start / End / Count Behavior" in Reference.


    If you want to use your local time or any other timezone, then you will need to convert it in your application code before invoking the endpoint. You can use pytz python module to help you do it.