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 in the DateSchedule.Definition object.

Module

IPA.DatesAndCalendars

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 get a schedule for a specific time period and frequency:

const definition = IPA.DatesAndCalendars.DateSchedule.Definition({
    startDate: '2019-04-30',
    count: 10,
    frequency: IPA.DatesAndCalendars.Frequency.Weekly,
    calendars: ['EMU', 'GER'],
    dayOfWeek: IPA.DatesAndCalendars.DayOfWeek.Tuesday,
    extendedParams: {
        currencies: ['EUR'],
    }
});

const result = await definition.getData(session);

console.log(result.data);

None.

70 words (0:22 mins)