Hello Community that for all the support for API queries. I'm invoking my algo every 7 seconds and only use positions & orderbook python methods in these invocations. I'm using quotes python method for my time based order placement which happens only

Hello Community that for all the support for API queries.

I’m invoking my algo every 7 seconds and only use positions & orderbook python methods in these invocations.

I’m using quotes python method for my time based order placement which happens only 4 times per day on 8 instruments total. So, my quotes method invocation is only 8 times per day.

However, I’m getting API rate limit has reached exception towards the end of the day. I’ve checked the Fyers debug log file and find that positions API is called less than 4900 times. and get_profile API called around ~3000 times.

Ideally I shouldn’t be getting the API limit exception for the above scenario. So, why am I getting the same? Any insight would be helpful. Thank you

Hey Natarajan,
I guess the APIs are being called alot since the limit reached error is coming,
would be useful if you send the code, so that we can debug.

Hi Vikram,
The algo is 10s & thousands of lines long. So, it is not feasible to send it. Instead, I’m sending you the log file created by the fyers object. This should be able to give you an idea on how frequently python Methods were invoked. I’ removed get_profile method call to safeguard personal information. Other than that, the log file is intact.

https://drive.google.com/file/d/1-SgPtYnPrwDWgmcowoe5l07BJ2yBhug6/view?usp=sharing
@vikram_sri , Please use the above link to look at the log file

API limit is not per API but is for all APIs. Which means if you breach the API limit even using any one API you will get the error.