Eikon Python API to Reuters Ownership Peers Analysis screen

I would like a code snippet/something similar that would help me get the results of the ownership peer analysis. Specifically, I need the following ability to be ability to control the following

* Stock / RIC identifier

* Type - Only need Hedge Fund, Sovereign Wealth, PE, VC and endowment

By providing these as params, I would like to receive back a pandas dataframe with the info that I see on the ownership peer analysis page. I.e.

Rank, Investor Name, Equity Assets ($M), Total Value Held ($ M), Latest filing Date, Number of stocks held, ETC.

Best Answer

  • Hi @jordan.x.giebas

    You can use this sample code to retrieve the information:

    rics = ['0005.HK']
    fields = ['TR.PeersNumStocksHeld','TR.PeersInvestorName','TR.PeersEquityAssets','TR.PeersTotalValueHeld',
             'TR.PeersLatestFilingDate','TR.PeersTotalValueChange','TR.PeersInvestorType','TR.PeersAddressCity',
             'TR.PeersAddressCountry','TR.PeersAddressRegion']
    df,e = ek.get_data(rics, fields)
    display(df)

    Sample output:

    image


    Then you can applied filtering logic on your Python code:

    This is an example to get only "Sovereign Wealth Fund" peer type.

    image