LSEG Data Library for .NET

OnUpdate

Optional callback invoked when an update has been applied to the chain.

Updates typically occur when the order of link positions within the chain change due to market activity.

In some cases, new elements can be added or removed from the chain. Refer to OnAdd() and OnRemove() for more details.

Syntax

IChainStream OnUpdate(Action<int, string, string, IChainStream> updateCb)

Usage

The following example demonstrates how to display the messages received when a constituent is updated in the stream.

var chainStream = Chain.Definition(".AV.O")
                       .GetStream()
                       .OnUpdate((index, oldv, newv, stream) => {});