LSEG Data Library for Python

get_stream

Allows you to create a streaming quantitative analytic object.

Module

cds.Definition

Syntax

definition.get_stream(session)

Parameters

Value Description Data type Optional Default value
session Session object. If session parameters are not defined, the default session will be used. Session object Yes None
api Specifies the data source. It can be updated/added using config file. str Yes -

Return value

QuantitativeDataStream object

Usage

The following example demonstrates how to get a streaming quantitative analytic object.

from refinitiv.data.content.ipa.financial_contracts import cds

definition = cds.Definition(
    fields=["YieldPercent", "Duration", "RedemptionDateType", "RedemptionDate"],
    instrument_code="BNPP5YEUAM=R",
    pricing_parameters=bond.PricingParameters(
        redemption_date_type="RedemptionAtCallDate",
        price = 100,
        trade_date = "2020-05-01"
    )
)
stream = definition.get_stream()

RDP stream

66 words (0:21 mins)