Nifty Index History data not returning

I am trying to get 5 mins candle historical data for Nifty index, but it throws {'s': 'error', 'code': -300, 'message': 'Please provide a valid symbol'} exception.

My input to history API on V2 is as follows:-

{'symbol': 'NSE:NIFTY50-INDEX', 'resolution': '5', 'date_format': 1, 'range_from': '2024-02-01', 'range_to': '2024-02-01', 'cont_flag': 1}

Please let me know what's wrong with this input?

1
3 replies