LSEG Data Library for .NET

Streaming

Specify whether the stream will retrieve the initial data followed by inserts and updates.

A value of false implies no streaming and that only the initial data will be delivered. This is commonly referred to as a snapshot.

A value of true implies that there will be streaming updates incoming on the OnRefresh and OnUpdate callbacks.

The default is true.

Syntax

IPricingStream Streaming(bool streaming)

Usage

The following example demonstrates how to disable streaming updates for a pricing stream.

var snapshotStream = Pricing.Definition("CAD=")
                            .Fields("BID", "ASK", "DSPLY_NAME")
                            .GetStream()
                            .Streaming(false);

snapshotStream.Open();

var result = snapshotStream["CAD="];