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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
6 0 2 2

Eikon Data API consistency across get_data and get_timeseries

Hi -

I'm struggling to understand why I am more data from one function vs another when I believe they should have the same information. I've isolated one such example below as a test case but this is not the only one:

import eikon as ek

ek.set_app_key(XXXXXXXXXXXXXXX)

ticker = 'AMZN.O'

start = "2007-10-05"

end = "2007-10-09"

df_getdata, err = ek.get_data(ticker, ['TR.PriceHigh.date','TR.PriceHigh'], {'SDate': start, 'EDate': end, 'FRQ': 'D'})

df_getts = ek.get_timeseries(ticker, fields = 'HIGH', start_date = start, end_date = end)

When I print each I get:

df_getdata has values for Oct 5 and Oct 9, see below --

Instrument Date Price High

0 AMZN.O 2007-10-05T00:00:00Z 93.71

1 AMZN.O 2007-10-09T00:00:00Z 96.73

Whereas df_getts has values for Oct 5, Oct 8, and Oct 10

AMZN.O HIGH

Date

2007-10-05 93.71

2007-10-08 95.85

2007-10-09 96.73

So it would appear that Oct 8 is missing from the first call? Any idea what is going on?

Thanks much. I can provide other examples from other tickers / dates if needed.

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.

@574c708d-6b25-445f-8303-2b495473ec99 i am going to raise a support request on your behalf, help desk will get in touch.

Upvotes
4.6k 26 7 22

@574c708d-6b25-445f-8303-2b495473ec99 this is definitely a bug in the time series over the get_data() call. Weirdly, this request returns the value for 2017-10-08:

df, e = ek.get_data('AMZN.O', ['TR.PriceHigh.date','TR.PriceHigh.value'],{'SDate': '2007-10-08', 'EDate': '2007-10-08', 'FRQ': 'D'})

I will raise this and let you know, thanks for reporting.

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.

Thank you, look forward to figuring it out.

Upvotes
3.8k 4 4 6

Hi @574c708d-6b25-445f-8303-2b495473ec99

Can you please try with:

err = ek.get_data(ticker, ['TR.HighPrice.date','TR.HighPrice'], {'SDate': start, 'EDate': end, 'FRQ': 'D'})
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.

Hi @marcin.bunkowski - I do indeed get all 3 dates when I use HighPrice vs PriceHigh, though a separate thread answer made it seem like the inverted code should be used for unadjusted data (https://community.developers.refinitiv.com/questions/30439/most-robustget-timeseries-or-get-data-for-historic.html)? In any event the both codes should return something for that date, no?

Hi @574c708d-6b25-445f-8303-2b495473ec99

In theory those codes should get the same.

It looks that 2007-10-08 was a holiday in US (Columbus Day) and might be causing this anomaly. I'd wait for a reply from Refinitiv helpdesk as suggested by @Zhenya Kovalyov

Click below to post an Idea Post Idea