LSEG Data Library for TypeScript

getData

The getData function is used to send a request to the Delivery Platform (formerly Refinitiv Data Platform) to retrieve the data described by the ForwardCurve.Definition object.

Syntax

definition.getData(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

ContentResponse object.

Usage

The following example shows how to construct the forward zero coupon curve and get data with user-defined definitions and parameters.

import { IPA } from '@lsegroup/data';

const definition = IPA.Curves.ForwardCurve.Definition({
    curveDefinition: {
        indexTenor: '3M',
        forwardCurveTag: 'ForwardTag',
        forwardStartDate: '2021-02-01',
        forwardCurveTenors: ['0D', '1D'],
    },
    forwardCurveDefinitions: [{
        currency: 'EUR',
        indexName: 'EURIBOR',
        discountingTenor: 'OIS',
    }],
    outputs: ['ShouldBeIgnoredIfPassedAsParameterToCurves'],
});

const response = await definition.getData();

console.log(response.data.raw);

None.

74 words (0:23 mins)