How to return subcategories for total revenue

image

I am trying to find the quarterly revenue and I have this:

data, err = ek.get_data(instruments = ['RCKY.O'], fields = ['TR.Turnover.periodenddate','TR.TotalRevenue'], parameters = {'SDate' : 0, 'EDate': -19, 'Period': 'FQ0', 'Frq':'FQ'})

I'm looking for to also return the subcategories of total revenue: wholesale, retail, military, but cannot find them on DIB

Thanks in advance.

Best Answer

  • felicia, are you looking for segmented revenue? If so, you can use:

    ek.get_data(['RCKY.O'],['TR.BGS.BusTotalRevenue.fperiod',
    'TR.BGS.BusTotalRevenue.segmentName',
    'TR.BGS.BusTotalRevenue'],
    {'Period':'FQ0', 'Frq':'FQ', 'SDate':'0', 'EDate':'-19'})

    image

Answers