Unable to retrieve data using get_timeseries()

Hi,


I have my eikon terminal running and am able to get data in excel using:

@RHistory("EUR1MX1Y=TTKL",".Timestamp;.Close","START:07-Mar-2021 END:07-Mar-2022 INTERVAL:1MO",,"SORT:ASC TSREPEAT:NO")

However, using python, this returns no data

ek.set_app_key("xxxxxxxxxxxxxxxxxx")
x = ek.get_timeseries(
["EUR1MX1Y=TTKL"],
fields=['CLOSE'],
start_date="2021-10-01",
end_date="2021-11-20")
)
Tagged:

Best Answer

  • [Deleted User]
    [Deleted User] Newcomer
    Answer ✓

    Hi @sumit ,


    Please try the following:

    ek.get_timeseries(
    ["EUR1MX1Y=TTKL"],
    start_date="2021-10-01",
    end_date="2021-11-20")


    for which I got:


    1646659647862.png


    Note also that there is no field 'CLOSE' for the instrument 'EUR1MX1Y=TTKL', so if you'd like to use the ek.get_data function, please use the Data Item Browser (DIB) to find the fields available for specific instruments. For more information on the DIB, please se this tutorial:

    https://developers.refinitiv.com/en/video-catalog/data-item-browser

Answers