Hello,
I am trying to retrieve exchange-level daily trading volumes for all RICs associated with a given ISIN, with the objective of summing the venue-level volumes without double-counting consolidated/composite volumes.
I was advised to use:
search_df = rd.discovery.search(query=isin,select="RIC, ExchangeCode",top=100)
venue_rics = search_df.dropna(subset=["ExchangeCode"])
The idea is that consolidated RICs have no ExchangeCode, so removing rows where ExchangeCode is null should leave only venue-specific RICs.
However, I still encounter cases where this does not seem sufficient.
For example, my results include for ISIN:
31B.DEU^A26
31B.D^A26 31B.F^A26
In this case, 31B.DEU^A26 is the German composite RIC, while 31B.F^A26 represents Frankfurt. Therefore, including both when summing volumes could lead to double-counting.
Is there a field or attribute available through rd.discovery.search that can reliably identify whether a RIC is an exchange/venue-specific RIC versus a composite/consolidated RIC?
Ideally, I would like to retrieve only the true venue-level RICs programmatically for each ISIN rather than maintain a manual list of composite RIC suffixes.
Many thanks for your help.
Best regards,