const indexService = new IndexService(client);

indexService.getIndexCandles({
    index: 'COIN50',
    granularity: 'ONE_DAY',
    start: '2024-01-01T00:00:00Z',
}).then(async (response) => {
    console.log('Index Candles: ', response);
})

For more information, please visit the INTX TS SDK.