I get the exception very frequently in fetching exception data, though there is only 1 algo running. I wait for 2 seconds and try again, still get exception. Sometimes it occurs more than 5-6 times: Below is the log from my code:
exception caught fetching historical data Too many requests. Will try after 2 seconds exception caught fetching historical data Too many requests. Will try after 2 seconds exception caught fetching historical data Too many requests. Will try after 2 seconds
I was told that it is because of too many requests raised within a second, I am raising only 1 request and even tried waiting too.
The error message is only displayed if the order rate limit is breached. Kite Connect API not only counts the orders placed but also the orders blocked due to invalid requests. Invalid orders are not displayed in the order book. However, they are counted as API requests. Invalid order requests are created due to an inaccuracy in the code. Recheck the code to avoid the error. Go through this support article.
Invalid order requests are created due to an inaccuracy in the code. Recheck the code to avoid the error. Go through this support article.