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 ?

check with latest API / Py pkg version 3

Hi @prakash.singh.kehiy976 ,

Are you still facing the same issue or its working fine?
You are running it on server or locally?

Hi @prakash.singh.kehiy976, @ZppA1qLXjC

Error 429 is very special error ! you have hit the max api limit.

@ZppA1qLXjC , may i request you to change the error message? this error message is hard coded. Better to have proper http error message.

@subhajit_bhar Team is looking into this issue

@prakash.singh.kehiy976 Please share your client ID and IP in DM

Hi Traders,

This issue has been fixed , kindly check once and let us know.

Still receiving this Error

Hi @sharath_babu1 ,

Looks like you have exceeded the rate limit , please find docs

https://myapi.fyers.in/docsv3

I am getting this error on the first call of the day.
Fyers is not REALABLE.
It’s good only for “hello world” of ago trading.
Can’t use it for prod.

Hi @rohit_sohlot, could you kindly confirm if you are still experiencing the same issue now?