question

Upvotes
Accepted
3 1 2 4

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

rdp-apirefinitiv-data-platformrefinitiv-data-platform-librariestime-zone
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
14.7k 39 12 18

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.