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'

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @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'})