LSEG Data Library for .NET

GetStream

Creates a Pricing.ChainStream object for the defined data.

Syntax

definition.GetStream()

Returned value

ChainStream object

Usage

The following example demonstrates how to get service directory stream object

// Create a non-streaming chain (simple syntax) - skip summaries and any blank links.
var chainStream = Chain.Definition(chain).GetStream().Streaming(false).Open();

Console.WriteLine($"\nRetrieved Chain RIC: {chain.DisplayName}");

// Display the 3 first elements of the chain
int idx = 0;
foreach (string constituent in chain.Constituents.Take(3))
{
    Console.WriteLine($"\t{++idx,2}. {constituent}");
}

Console.WriteLine($"\t...\n\t<total of {constituents.Count} elements.>");