LSEG Data Library for Python

remove_instruments

The remove_instruments method removes one or more instruments from the previously defined and opened pricing stream.

Module

lseg.data

Syntax

remove_instruments(instruments)

Parameters

Value Description Data type Optional Default value
instruments Single instrument or list of instruments. str, List[str] No -

Returned value

None

Usage

The following example demonstrates how to remove the GBP and EUR instruments from the previously defined and opened pricing stream:

import lseg.data as ld


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

stream.remove_instruments(['GBP=', 'EUR='])

None

56 words (0:18 mins)