Refinitiv Data Platform Library for TypeScript

getFieldValue

Allows you to get the requested field value for the instrument.

Syntax

stream.getFieldValue(instrument: string, field: string)

Parameters

Value Description Data type Optional Default value
instrument Name of the instrument string No -
field Name of the field string No -

Returned value

A requested field value (string, number, null or boolean) for the instrument or undefined if not found.

Usage

The following example demonstrates how to get requested field value for the specified instrument.

const stream = Pricing.Definition({
    universe: ['EUR=', 'CAD=', 'UAH='],
    fields: ['DSPLY_NAME', 'BID_NET_CH'],
}).getStream();

const fieldValue = stream.getFieldValue('EUR=', 'DSPLY_NAME');

None.