Getting 'Bad request' error while calling fyers.history module

Getting 'Bad request' error while calling fyers.history module

Below is my data :

data = {'symbol': 'NSE:NIFTYBANK-INDEX', 'resolution': 1, 'date_format': '1', 'range_from': '2023-11-11', 'range_to': '2023-11-16', 'cont_flag': '1'}
response = fyers.history(data=data)
print(response)

Getting below error

{'s': 'error', 'code': 429, 'message': 'Bad request'}

Can anyone help me with this error please ?

9 replies