Refinitiv Data Platform Library for TypeScript

onComplete

Attaches an event handler function to the stream, which will be called once all the requested instruments have received either a Refresh or a Status event.

Syntax

stream.onComplete(callBack: Pricing.StreamCompleteCallback)

Parameters

Value Description Data type Optional Default value
callback Pricing.StreamCompleteCallback function (see Pricing.StreamEvent ) function No -

Returned value

Pricing.Stream object

Usage

The following example demonstrates how to display the messages received when all the data is successfully retrieved.

const stream = Pricing.Definition(['EUR=']).getStream();

await stream
    .onComplete(() => console.log('Complete'))
    .open();

None.