Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get a list of all private companies of an specific country #16

Open
gilbertopenedo opened this issue Sep 4, 2018 · 2 comments

Comments

@gilbertopenedo
Copy link

Hi,

I´m trying to get a list of private companies that are listed on eikon using eikonapir.

The command lines are the following:
set_app_id("my_app_id")
type <- 'IN(Private(OrgType(COM, UNK, MKP)))/UNV:Private/)'
country <- 'IN(TR.HQCountryCode,"BR")'
companies <- paste0('SCREEN(U(',type,',',country,')')
columns <- list(TR_Field(field_name = 'TR.CommonName'))
list_companies <- get_data(companies,columns)

I was successful using this method for public companies, setting type as 'IN(Equity(active,public,primary))/UNV:Public/)'. But it´s not working for private companies.

Could you help me?

@RicoDiel
Copy link

RicoDiel commented Aug 5, 2020

I strongly assume the problem is that there simply are to many private firms in Brasil.
To narrow it down, you can adapt your call as follows:

set_app_id("my_app_id")
type <- 'IN(Private(OrgType(COM, UNK, MKP)))/UNV:Private/)'
country <- 'IN(TR.HQCountryCode,BR)' # i changed "BR" to BR inside this string, else we get undesired output
industry <- 'IN(TR.NAICSSubsectorCode,321)' # Manufacturing > Wood Production
range <- paste(country, industry, sep = ",")
companies <- paste0('SCREEN(U(',type,',',range,')')
columns <- list(TR_Field(field_name = 'TR.CommonName'))
list_companies <- get_data(companies,columns)

It might be too late for you, but i hope it helps others

@gilbertopenedo
Copy link
Author

gilbertopenedo commented Aug 5, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants