Historical RICs on Mutual fund holdings

Options

Hello everyone,

I’m attempting to retrieve historical mutual fund holdings using the following code:

Screenshot 2025-07-16 alle 21.09.41.png

However, the table appears as follows:

Screenshot 2025-07-16 alle 21.11.19.png

As you can see, the code returns only the RICs from the most recent holdings, not those from earlier dates. I have two questions:

  1. How can I retrieve historical RICs for my mutual fund holdings prior to the current date?
  2. How can I add a date column to the table so that each record is associated with its corresponding date?

Thank you in advance.

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    edited 5:43AM

    The code could be like this:

    df = ld.get_data(    
       universe = ['LP40215045'],    
       fields = [       
           'TR.FdInvestorPctPortfolio.Date',       
           'TR.FdInvestorPctPortfolio.SecurityOwnedRIC',               
           'TR.FdInvestorPctPortfolio'            
          ],    
       parameters={'SDate':'2023-12-31','EDate':'2024-12-31','Frq':'FQ','StartNum':1,'EndNum':316})
    
    df.dropna()
    

    However, 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 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. Please also include the URL of this discussion in your raised question to prevent it from being redirected back to this Q&A forum.