LSEG Data Library for .NET

RemoveItems

Allows to remove item(s) to the stream, even when the stream has been already opened.

The item(s) will automatically close.

Syntax

void RemoveItems(params string[] items)
void RemoveItems(IEnumerable<string> items)

Usage

The following example demonstrates how to remove items to a pricing stream.

var stream = Pricing.Definition().Fields("DSPLY_NAME", "BID", "ASK");

stream.Open();

// Add a list of items
stream.AddItems(new[] { "EUR=", "GBP=", "CAD=" }); 

// Remove one - GBP=
stream.RemoveItems("GBP=");

stream.Close();