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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
25 0 0 2

Shareholder History Frequency

In Python, is it possible to set the parameters of the get_data function in such a way that it pulls the largest shareholders at each end of quarter for a number of years, say 2005-2010? I have only managed to do this with loops for now, each time setting a different SDate.


Thank you!

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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.

Upvotes
Accepted
25 0 0 2
for i in range(1995, 2020):
    for z in range(1, 5): 
        ek_data, err=ek.get_data(ISIN_list,fields,{"SDate": str(z)+"QCY"+str(i),"EndNum":"40", "CURN": "DKK"})
        ek_data["y"]=i
        ek_data["q"]=z
        df_list.append(ek_data)


Thank you for your answers. Please find the code I currently use above. It puts every period in a separate dataframe and then appends the dataframe to a list.

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.

Upvotes
39.2k 75 11 27

@dpi.eco

I don't believe there's a way to request the list of company shareholders for a range of dates. As far as I can see the only way to construct what you're looking for is to retrieve the list of shareholders in a loop for one date at a time, as you're doing now.

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