LSEG Data Library for Python

TopNewsId

The list of possible top news IDs.

Name Value Description
CURRENT "current" Current top news packages.
TEST "test" Testing top news packages.
NEXT "next" Upcoming top news packages.

Usage

The following example demonstrates how to create the top news hierarchy definition object to get only current top news packages:

from lseg.data.content import news
from lseg.data.content.news import SortOrder

definition = news.top_news.hierarchy.Definition(id=news.top_news.hierarchy.TopNewsId.CURRENT)
48 words (0:15 mins)