API for analyst recommendations

I would like to download all analyst recommendations released between 2000 and 2024 (not just the latest, but the full historical data).

Specifically, I want to retrieve the following information:

  1. The date the recommendation was announced
  2. The date it was activated in Refinitiv (i.e., when it became available in the system)
  3. The date it was confirmed
  4. The broker name
  5. The analyst name
  6. The recommendation value

I am currently attempting the following code, but I'm not sure which fields and parameters I need to include to get the data correctly.

import refinitiv.data as rd
rd.open_session(app_key=APP_KEY)

df = rd.get_data(
universe = ['037833100'],
fields = [], parameters={}
)

Could you please advise which fields correspond to the information above and how to structure the query to get historical recommendations, not just the latest?

Tagged:

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @hh29246

    Thank you for reaching out to us.

    This forum is dedicated to software developers using LSEG APIs. The moderators on this forum do not have deep expertise in every bit of content available through LSEG products, which is required to answer content questions such as this one.

    The best resource for content questions is the Helpdesk support team, which can be reached by submitting queries through the LSEG Support. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.

    You need to ask for the Excel formula, such as =RDP.Data, that can be used to retrieve the required data. Then, we can help you converting that formula to Python code.

    Otherwise, you can use the Data Item Browser tool to search for fields and parameters.