question

Upvotes
Accepted
3 2 4 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.

Hello @dennis-za.bergmann,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
22k 58 14 21

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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