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
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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@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 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.