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
11 3 5 5

get_timeseries() pulls intraday data even if interval is daily

We have developed python code that pulls daily oil and natural gas data every Thursday. However, a couple of weeks ago, the code started pulling intraday data before the market closed. This had not occurred before and caused some problems with our content.

The dummy example below pulls intraday values for Thursday. However, in prior reports, the Thursday's intraday was not pulled. Nothing changed on our end including the run time, which is usually around 9:30 AM EDT.

# current date/time is 2020-10-8 9:30:00 EDT (this pulls intraday data for 10-8)
df = ek.get_timeseries('NHV21', start_date='2019-01-01', end_date='2020-10-8 9:30:00', interval=interval)

As the default interval is "daily", one would expect that the data pulled would be from 2019-01-01 - 2020-10-7 (omitting Thursday's intraday print).

Could you clarify whether interval='daily' will only pull daily settles? Or will it pull daily settles until the most recent day, then simply pull the most recent quote?

Finally, was there a change made to the API that would explain this behavior? Again, none of the code on our end was changed.

Thanks in advance.

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.

Hello @michaelberk99

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,


AHS

1 Answer

· Write an Answer
Upvote
Accepted
22k 58 14 21

Hi @michaelberk99, Your RIC NHV21 seems to be invalid, but I can replicate this behavior with other instruments.

ek.get_timeseries('IBM.N', start_date='2020-10-01', end_date='2020-10-09T09:30:00', interval='daily')

To get clarification on the data content, I would suggest that you raise a ticket with Refinitiv helpdesk and select "I need help understanding content in a product".


1602250659127.png (12.2 KiB)
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.

Thanks for the answer! The RIC was a typo - I meant to use NGV21 in the above example. And noted I'll open the ticket now.

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.