question

Upvotes

What is the code to extract the maximum number of news from news monitor for Nasdaq 100 companies with date? Also what is the maximum limit we need to specify to execute the codes at a time.

#technologynews
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.

Upvotes
87.1k 294 53 79

@jyothirmaie.mukthapuram

Thank you for reaching out to us.

The maximum number of headlines for each headlines request (LSEG Data Library for Python) is 100.

You can use the order_by="oldToNew" parameter to get the oldest news.

df = ld.news.get_headlines('R:.NDX', order_by="oldToNew",count=100)
df

The examples are on GitHub.


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.

Upvotes
7.3k 18 2 8

Hi @jyothirmaie.mukthapuram ,


Please refer to the answers to your earlier questions here and here. As for the limits, you can check those here.


Best regards,

Haykaz

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.