Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
646 21 32 41

Eikon Data API timeseries - local time

Is it possible to request timeseries data using local exchange time instead of GMT?

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

Upvotes
Accepted
4.3k 2 4 5

Hi Igor,

All date values in request parameters and retrieved data are in GMT.

You can unlocalize request parameters then localize result to have date and time in local zone instead of GMT.

You'll find an example here to localize request parameters : https://community.developers.refinitiv.com/questions/16879/eikon-api-time-zone-in-time-series.html

To unlocalize result, I don't have yet an example.

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.

No need to unlocalize at this moment.

So,

start_date=datetime.datetime(2017, 1, 3, 7, 12, 30, 214000, tzinfo=tzlocal()) 

So this will convert 2017-1-3 7:12:30 from my local time to GMT?

Sorry,
I didn't see your question.
Your example : start_date is localized in your local timezone.

Then you can request timeseries data using local time

=> ts = eikon.get_timeseries(..., start_date=start_date, ...)

The limit : result will contain corresponding range of dates but in GMT.

Hello @pierre.faurel

Will you be able to further confirm on this subject, per additional question from the developer?

Thank you

Upvotes
18.2k 21 13 21

Hi @igorg

The API - get_timeseries() returns time in GMT only.

You can use other 3rd package to convert the time to your local time.

Here is an example.

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.

Hi @igorg

I am sorry, I misunderstand your question.

The question is asking on the request (not the response).

I will leave my answer there for the benefit of the community.

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.