LSEG Data Library for Python

open

The open method opens the streaming connection to the Pricing data.

Module

lseg.data

Syntax

open(with_updates)

Parameters

Value Description Data type Optional Default value
with_updates If True, streaming will work as usual and the data will be received continuously. If False - only a data snapshot will be received. Bool Yes True

Returned value

OpenState.Opened

Usage

The following example demonstrates how to open the pricing stream:

import lseg.data as ld


stream = ld.open_pricing_stream(
    universe=['GBP=', 'EUR=', 'JPY='],
    fields=['BID', 'ASK'],
)

# stream usually opened by default
stream.close()

# stream open
stream.open()

OpenState.Opened

58 words (0:18 mins)