Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvote
Accepted
16 0 0 1

Eikon API in Python - Limiting the Downloaded Rows

Hello, Im using Eikon API in Python. I want to limit the ownership downloads with top 10 rows instead of downloading every ownership. How can I adjust it? Thanks

dd, er = ek.get_data(["AAPL.O"],
                     ["CF_NAME", "TR.ISIN", "TR.InvestorFullName", "TR.SharesHeld",
                      "TR.FilingType", "TR.HoldingsDate", "TR.CompanySharesOutstanding"])
eikon-data-apipythonrefinitiv-dataplatform-eikonworkspace#product#contentrefinitiv-data-libraries
icon clock
10 |1500

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

@Fatih Yazgan

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvote
Accepted
10.2k 18 6 9

@Fatih Yazgan Thanks for your question - so the StartNum and EndNum Parameter settings allow you to control this:

dd, err = ek.get_data(["AAPL.O"],
            ["CF_NAME", "TR.ISIN", "TR.InvestorFullName", "TR.SharesHeld",
            "TR.FilingType", "TR.HoldingsDate", "TR.CompanySharesOutstanding"],
            {'StartNum': 0, 'EndNum': 10})

1678893705111.png

Note static fields such as ISIN won't be copied down the list but this can easily be achieved with the pandas forward fill function. I hope this can help.



1678893705111.png (322.3 KiB)
icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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