Refinitiv Data Library for Python

get_stream

Creates and returns the pricing chain object that allows you to get streaming data for previously defined chains.

Module

refinitiv.data.content.pricing.chain

Syntax

definition.get_stream(session)

Parameters

Value Description Data type Optional Default value
session Session object. If it's not passed the default session will be used. Session object Yes None

Return value

pricing stream

Usage

The following example demonstrates how to use the stream object to get data from the 0#.FTSE chain.

definition_chain = pricing.chain.Definition("0#.FTSE").get_stream()

pricing stream open method
pricing stream close method
pricing stream on_refresh method
pricing stream on_update method
pricing stream on_status method
pricing stream on_complete method
pricing stream on_error method