I am trying to get the delisted stock's details using RDP search. But there are multiple entries of the same stock(different share class, different listing location, etc.).
Here is the code that I am using to pull the data:
df = rdp.search(view = rdp.SearchViews.EquityQuotes,
top = 10000,
filter = f''' RCSExchangeCountryLeaf eq 'Switzerland' and RCSTRBC2012Name eq 'Healthcare' and ListingStatus eq 'DEL' and RCSAssetCategoryLeaf eq 'Ordinary Share' and RetireDate gt 2000-01-01 and RetireDate lt 2026-01-01 and IsPrimaryIssueRIC eq true''',
select = ("""RIC,TickerSymbol,ExchangeCode, ExchangeName, DTSubjectName , ShareClassName, IsPrimaryRIC, IssuerEquityPrimaryRIC, IsPrimaryIssueRIC, MktCapCompanyUsd, MktCapTotal, AssetState, ListingStatus, RetireDate, RCSExchangeCountryName, RCSTRBC2012Name, ISIN, IssueISIN"""),
order_by = "MktCapCompanyUsd desc")
In the output of the above code, there are multiple entries of the same share:
Which filter shall I use to get only the primary stock details?