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
39 3 7 4

get_timeseries doesn't return data but RIC contains data in the Eikon terminal

Hello,

When I try to get the close for RIC TRDEBFVMc4 for the 13/08/2021 using get_timeseries (see call below), I get an error No data available for the requested date range.

However, when I look at that RIC in the terminal, I can see a data point for the 13/08/2021:

1629099745117.png

import eikon as ek
df = ek.get_timeseries('TRDEBFVMc4',
            start_date = '2021-08-13T00:00:00',
            end_date   = '2021-08-13T00:00:00',
            fields     = ['CLOSE'],
            interval   = 'daily')

Could you please help with that?

Thank you

eikoneikon-data-apirefinitiv-dataplatform-eikonworkspaceworkspace-data-apitime-series
1629099745117.png (35.5 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.

Hi @clangevin ,

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

@clangevin

Hi,

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

Thanks,

AHS

Upvotes
Accepted
25.3k 87 12 25

Hi @clangevin

I reported the issue to our EDAPI team, but they were unable to recreate the issue.

I also tried testing again and your same code snippet is working now

1629273178348.png

I suspect there was some transient issue - however, we will report it to the TimeSeries service team as well.

Can you please confirm your original snippet is working now?

Thanks.


1629273178348.png (11.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.

Upvotes
25.3k 87 12 25

Hi @clangevin

I have reported this issue to the EDAPI team, but you can use the following in the meantime:

df = ek.get_timeseries('TRDEBFVMc4',
            start_date = '2021-08-13',
            end_date   = '2021-08-16',
            fields     = ['CLOSE'],
            interval   = 'daily')
df.iloc[0]['CLOSE']

#which outputs -> 98.44


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
39 3 7 4

Thanks Umer but no I cannot use your alternative as there's no way to be sure what the output correspond to (could be any date between the 13th and the 16th). TRDEBFVMc2 works fine so either Eikon Terminal displays data for the 13/08/2021 in the chart which is actually a front-end interporlation and not a value in the database, or get_timeseries somehow cannot access the data point for the 13/08/2021.

Can you check the DB behind that RIC to see if there is indeed a value for the 13/08/2021?

Thanks.

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
25.3k 87 12 25

Hi @clangevin

Thanks, I understand your issue.

I suspect what you have reported is a bug and I am awaiting a response from the EDAPI team.
In the meantime, would the following be a usable workaround?

try :
    print(df.loc['2021-08-13']['CLOSE'])
except:
    print('not found')


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.