Refinitiv Data Library for TypeScript

Metadata.Definition

Summary

This method allos you to create a Metadata Definition object that contains methods to work with streaming API and snapshots.
Once the data is described, your application just needs to call the getStream() method of the Definition to create a MetaData.Stream object for the defined data.

Methods

Definition()

Allows you to create the Definition for the MetaData content object.

Parameters:

Name Is Optional Default Value Type Description
extendedParams Yes - {[key:string]:any} Specifies the parameters that will be merged with the request

Returned value: a Definition object StreamDefinition<Metadata.Stream>


getStream(session: Session)

Allows you to create a Metadata.Stream object for the defined data.

Parameters:

Property Is Optional Default Value Type Description
session No - Session Session instance

Returned value: <Metadata.Stream>