LSEG Data Library for TypeScript

getStream

This method creates and returns the OMM stream that allows you to get streaming data for previously defined parameters.

Syntax

definition.getStream(session: Session)

Parameters

Value Description Data type Optional Default value
session Session object. If it's not passed the default session will be used. Session Yes -

Returned value

OMMStream object

Usage

The following example demonstrates how to get the stream object to retrieve 'DSPLY_NAME' and 'PRCTCK_1' fields for the EUR= instrument:

const definition = Delivery.OMMStream.Definition({
    name: 'EUR=',
    fields: ['DSPLY_NAME', 'PRCTCK_1']
});

const stream = await definition.getStream();

None.

66 words (0:21 mins)