Fundamental data and get_timeseries

Using PM-OILTOTPD-EIA as an example (other similar data is experiencing the same issue). In Eikon, these data are correct, but pulling via Python they are not. What am I missing?

rics = ['PM-OILTOTPD-EIA']
start = (date.today()-timedelta(days=365)).strftime("%Y-%m-%d")
fields = ['Timestamp','Close']

df = ek.get_timeseries(rics,fields,start,interval='monthly')


If the interval is not specified, running the script yields an error.

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    @Corey.Stewart

    Based on the above code segment you provided, this is the history:

    ahs.png

    Looking at the screenshot of the chart above, all the history matches up with the exception of the last data point in the chart. That is, the API doesn't return data for March 31, 2022. Can you confirm these details and that the issue is that you don't get the extra data point for a future value?

Answers