LSEG Data Library for Python

omm_stream.Definition object

The omm_stream.Definition object defines the data to retrieve using the OMM data stream from the Delivery Platform (formerly Refinitiv Data Platform).

Module

lseg.data.delivery.omm_stream

Syntax

omm_stream.Definition(name, api, service, domain)

Parameters

Value Description Data type Optional Default value
name Instrument name. str No -
api Streaming data source. str Yes None
fields Single field or list of fields to return. str, List[str] Yes None
service Third-party service URL to manage the streaming data. str Yes None
domain Specific streaming data domain. str Yes "MarketPrice"

Returned value

omm_stream.Definition object

Usage

The following example demonstrates how to create the OMM stream definition for the real-time data stream in the "MarketPrice" domain, and the "BID", "ASK", "OPEN_PRC", "HST_CLOSE", and "TIMACT" fields of the EUR instrument:

from lseg.data.delivery import omm_stream

stream = omm_stream.Definition(
        name="EUR=",
        fields=['BID', 'ASK', 'OPEN_PRC', 'HST_CLOSE', 'TIMACT'],
    )

None.

111 words (0:35 mins)