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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 2

Recent Data Update not working for Specific ETFs

Hi am using the python API to query recent data.

I am using a simple ek.get_data function. A sample code is:

df, err = ek.get_data('FLOT.K', ['TR.Close.date', 'TR.Close'])

OR:

df, err = ek.get_data('FLOT.K', ['TR.Close.date', 'TR.Close'], {'Sdate': '2019-04-22', 'Edate': '2019-04-23'})

However the returning data is 2019-04-18

If I change 'FLOT.K' to 'SPY' then it seems it returns the most recent datapoint '2019-04-23'

*EDIT:

Just to add.

using the get_timeseries() function returns data up to the '2019-04-23'

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.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@wsohn12

You should use TR.CLOSEPRICE field instead.

df, err = ek.get_data('FLOT.K', ['TR.CLOSEPRICE.Date', 'TR.CLOSEPRICE'], {'Sdate': '2019-04-22', 'Edate': '2019-04-23'})
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