TR.F.TotRev5YrCAGR' and 'TR.F.TotRev10YrCAGR' for firms of interest in API

Options

Hi Team, good day! Raising on behalf of a client:

Hope this message finds you well. I am trying to use refinitiv.data to retrieve data for the fields 'TR.F.TotRev5YrCAGR' and 'TR.F.TotRev10YrCAGR' for firms of interest. However, my script does not work, and the error page is attached. The code I was trying to run is:import refinitiv.data as rdrd.open_session()df = rd.get_data(universe = ['0#.SPX'],fields = ['TR.F.TotRev5YrCAGR','TR.F.TotRev10YrCAGR'])display(df)I also hope to seek some guidance on whether I should instead use EIKON to import data.

For example, I saw some guidance from below. So I was hoping to understand the relationship between these APIs and wanted to learn to set them up properly.

Thank you!

Best Answer