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 Holidays.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 get the holidays for a specific time period:

const definition = IPA.DatesAndCalendars.Holidays.Definition({
    tag: 'My request',
    startDate: '2020-01-01',
    endDate: '2021-01-01',
    calendars: ['UKR', 'FRA'],
    currencies: ['EUR'],
    extendedParams: {
        holidayOutputs: [
            IPA.DatesAndCalendars.HolidayOutput.Calendars,
            IPA.DatesAndCalendars.HolidayOutput.Countries,
            IPA.DatesAndCalendars.HolidayOutput.Date,
            IPA.DatesAndCalendars.HolidayOutput.Names,
        ]
    }
});

const result = await definition.getData(session);

console.log(result.data);

None.

68 words (0:21 mins)