Hello everyone,
I'm currently working on a project where I retrieve RICs and PrimaryRICs for a set of ordinary shares from various global markets using the Refinitiv Research API (EQUITY_QUOTES) through codebook. Then I use the PrimaryRICs to gather fundamental data for these companies.
However, I've encountered a problem with equities that have been delisted and haven't traded since. These do not have a 'PrimaryRIC' field. I was advised to use TR.PrimaryInstrument
for these cases, but unfortunately, the Refinitiv Research API (EQUITY_QUOTES) does not have TR.PrimaryInstrument
.
Retrieving TR.PrimaryInstrument
using ek.get_data
is not feasible as it would take a substantial amount of time due to the large number of RICs involved.
Could anyone suggest an efficient method to retrieve TR.PrimaryInstrument
for the described RICs? Are there any best practices or alternative approaches within the Refinitiv suite that could help optimize this process?
Thank you in advance for your assistance!
Example of the code I use to retrieve RICs and PrimaryRICs for a set of ordinary shares:
response = search.Definition(
view=search.Views.EQUITY_QUOTES,
filter=filter_query,
select="RIC, PrimaryRIC, IssuerOAPermID",
top=10000
)
Please let me know if you need more details.