Refinitiv Data Platform Library for TypeScript

getStream

Creates a Pricing.Chain.Stream object for the defined data.

Syntax

definition.getStream(session: Session, api?: string)

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

Pricing.Chain.StreamingChain object

Usage

The following example demonstrates how to get service directory stream object

const stream1 = Pricing.Chain.Definition('.AV.HSI').getStream(session);
// or
const stream2 = Pricing.Chain.Definition({
    name: '.AV.HSI',
    skipEmpty: true,
    nameGuessingQuantity: 8
}).getStream(session, 'some/api/main');