I am using Spyder in Windows with Eikon API.
I am trying to extract information on companies using their company name. My personal data of both inactive and active public and private companies, through which I'm trying to match company names, does *not* have RIC, PermID, or any other corresponding code. All it has is the common company name. Note that the command Contains(TR.CommonName) will *not* work for me since It will provide many unnecessary matches, increase data acquisition time exponentially, and get closer to my rate limit.
This requires me to use a (case-insensitive) exact matching system, where I only extract companies with names that exactly match the ones in my dataset (proxied here by instrument_code). But I can't seem to obtain any information about the companies of interest through my code.
Any help would be appreciated.
Here is my code:
instrument_code = 'APPLE INC'
screener_query = f"SCREEN(U(IN(Equity(active,inactive,public,private,primary))), TR.CommonName == '{instrument_code}',Curn=USD)"
df, err = ek.get_data(screener_query, fields = ['TR.F.RnD', 'TR.F.RND.date'],
parameters = {'SDate': '0', 'EDate': '-34', 'Frq': 'FY'})
```