LSEG Data Library for Python

news.top_news.hierarchy.Definition

Defines the online reports hierarchy to retrieve.

Module

data.content.news.top_news.hierarchy

Syntax

news.top_news.hierarchy.Definition(extended_params)

Parameters

Value Description Data type Optional Default value
id Top news package ID. str, TopNewsId Yes None
extended_params Specifies the parameters that will be merged with the request. dict Yes None

Returned value

news.top_news.hierarchy.Definition instance

Usage

The following example demonstrates how to define the top news hierarchy for the current top news packages:

from lseg.data.content import news

definition = news.top_news.hierarchy.Definition(id=news.top_news.hierarchy.TopNewsId.CURRENT)

TopNewsId

57 words (0:18 mins)