Get ETF Holdings using RDP Python Library

Hi, I am trying to get the holdings for an ETF using the RDP Python Library but I keep getting a `None` response. Here is my code:


import refinitiv.dataplatform as rdp
import pandas as pd


rdp.open_platform_session(
'APP_KEY',
rdp.GrantPassword(
'MY_USERNAME',
'MY_PASSWORD'
)
)

x = rdp.get_data(universe='IWM',fields= ['TR.FundHoldingRIC','TR.FundHoldingName',
'TR.FundPercentageOfFundAssets',
'TR.FundNumberOfShares',
'TR.FundNumberOfSharesChanged'])#, {'SDate': '2021-01-01'})
print(x)

In this case, `x=None`. Could not find any documentation for how to retrieve this data using the RDP library. I know it can be pulled using Eikon, but I don't want to have to have it open in the background. I would like direct api access to the holdings using nothing but the key

Best Answer

  • bob.lee
    Answer ✓

    Hi @youssef.ishak, Your code sample is what I typically called "Eikon API", and I doubt Eikon API can allow you access these funds data without Eikon/Workspace running at the background. There is a separate service called RDP Funds API that allows you do that. It is a REST API that you just send queries to the external server and get the responses (results back) via the HTTPS protocol. But that is a sperate services requires separate license.

Answers