Rate limit and Historical API

The api rate limit is set at 10k per day but under the Data Api>History section in the docs say history is unlimited. Does calling fyers.history() function not count towards rate limit?

I’m creating a few indicators and so far i had to structure my code to stay within the 10k limit, majority of those api calls are for history, if its unlimited i can simply refactor my code and make it simpler for modifications.

Hi Javed,

Each request of fyers.history() function will be counted in the rate limit.

In the documents, it’s mentioned that “Unlimited number of stocks history data can be downloaded in a day”, which means there is no limitation on no.of stocks.

So please optimize your code, considering the rate limits on history api calls.

Can you elaborate “no limitation on no. of stocks”?

Given fyers.history() only takes one symbol at a time (ref - https://community.fyers.inhttps://fyers.in/community/t/multiple-symbol-history/19872)

if theres a limit on number of function calls, how does that equate to unlimited number of stock history?

Hi Javed,

You can fetch symbols history within the rate limit.
For example, if you are only using history APIs and not any other APIs, your rate limit will only apply to the history API, allowing you to fetch up to 10,000 symbols.

Ah, ok

thanks for the clarification

does the rate limit belongs only to history calls? or to the orders like getOrders() and getTrades() as well?

Hi @112816482980111661358,

Good news—Fyers API’s daily request limit has been increased 10 times. You can now make up to 1Lakh requests per day.

Note: No changes in Per Second & Per Minute requests limit

Happy Trading! :tada: