Refinitiv Data Library for Python

trade data service stream.open

Opens the websocket connection to the trade data service data, and sends corresponding requests for all requested instruments, fields and parameters.

Module

refinitiv.data.content.trade_data_service

Syntax

stream.open()

Parameters

None

Returned value

None

Usage

The following example demonstrates how to get the stream object to retrieve the OrderKey and OrderTime fields for the LSEG.L instrument and open the stream.

stream = trade_data_service.Definition(
    universe="LSEG.L",
    fields=["OrderKey", "OrderTime"]
).get_stream()

stream.open()

None