How to extract quarterly fundamentals data

I would like to extract quarterly values for the field totalEquity for Apple usnig the Python eikon API. I currently have the following function:

temp_data = ek.get_data('AAPL.O',['TR.ISOriginalAnnouncementDate','TR.TotalEquity.periodenddate','TR.TotalEquity'],parameters={'SDate': start_date, 'EDate': end_date})

But i only get yearly values. I tried to change the field FRQ in the parameters but could not get the right set-up. Any suggestion?


Best Answer

  • Hi @Tulkkas

    You can try this code:

    df,e  = ek.get_data('AAPL.O',
                        ['TR.ISOriginalAnnouncementDate(SDate="2017-01-01",EDate="2019-08-01",Period=FQ0,Frq=FQ)',
                         'TR.TotalEquity(SDate="2017-01-01",EDate="2019-08-01",Period=FQ0,Frq=FQ).periodenddate',
                         'TR.TotalEquity(SDate="2017-01-01",EDate="2019-08-01",Period=FQ0,Frq=FQ)'])
    df

    image