New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
1 0 0 0

How to exclude the previous results of the screener in the next screen code?


Want to download big screener of stocks. The problem is the script limits the download to maximum of 10000 stocks at one time having about 50000 records.

what is the way to iteratively download the full records from the screener.


#productapipython apiscreener
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.

1 Answer

· Write an Answer
Upvotes
15.6k 33 5 10

Hi @Kai.Salanguit ,

Could you please try using the Search function in the Data Library instead? Here's the article of how to use it Find content and functionality using the Data Library with Workspace Advanced Search

The example of retrieing data with more than 10000 results can be found in section 2) Using the Search function to retrieve the data in article Searching for KungFu Bonds (Chinese-issued U.S. dollars bonds) with the Data Library - Search function

In this case, as number of the result is exceeding 10,000 records, which is the maximum number of top parameter. We're going to use Content Layer code instead, so we can find the number of result of each label in selected filter with navigators parameter, then retrieve the data in chunk divided by label(s) that their result number aren't exceed the maximum number of top parameter.
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.