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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
39 1 3 3

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikontime-series
1629099745117.png (35.5 KiB)
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
20.3k 73 10 20

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

Upvotes
20.3k 73 10 20

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

Upvotes
39 1 3 3

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

Upvotes
20.3k 73 10 20

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

Click below to post an Idea Post Idea