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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
646 6 13 25

Eikon Data API timeseries - local time

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

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.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 5.0 MiB each and 10.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
18k 21 12 20

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea