For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 2

map stocks to industry

Hi,

I am trying to map stocks to their respective industry. How to go about it using API? For example , I would like to identify AAPL to Technology sector using GICS classification or any other available classification. How I go about it. It is limited to US stocks only

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikon
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 69 35 53

@rsharan

You can use Eikon Data API to retrieve business classifications for both TR and GICS classifications. The code looks like this:

df,err = ek.get_data(
    instruments=['AAPL.O','PTT.BK'],
    fields=['TR.TRBCEconomicSector',
            'TR.TRBCBusinessSector',
            'TR.TRBCIndustryGroup',
            'TR.TRBCIndustry',
            'TR.GICSSector',
            'TR.GICSIndustryGroup',
            'TR.GICSIndustry',
            'TR.GICSSubIndustry'])
df

The output is:
1624245292515.png

For more information, please refer to:


1624245292515.png (34.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea