I am using the Eikon API to pull firm ownership information in Python. I only need the resulting df to contain four variables: the firm's ticker, the date for the shares held, the number of shares held, and the investor type. My issue is that it is pulling the information for each specific investor, whereas I would like for it to pull the information aggregated for each investor type at the quarter level. This results in the data pull taking an excessive amount of time.
Here is the code I am currently using:
df, err = ek.get_data('AAPL.O', ['TR.SharesHeld.calcdate', 'TR.SharesHeld', 'TR.InvestorType'],
{'SDate': '2023-01-01',
'Edate': '2023-12-31',
'FRQ':'Q'})