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:
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?
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
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?
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['CLOSE'] #which outputs -> 98.44
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, 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')