const indexService = new IndexService(client);

indexService.getIndexPrice({
    index: 'COIN50',
}).then(async (response) => {
    console.log('Index Price: ', response);
})

For more information, please visit the INTX TS SDK.