Api rate limits

hi Team,

I am trying to call history api for the first time today but still get the rate limit exceeded notification.

import datetime as dt

symbol = 'NSE:NIFTYBANK-INDEX'

start_date = (dt.date.today() + dt.timedelta(-5)).strftime('%Y-%m-%d')
end_date = dt.date.today().strftime('%Y-%m-%d')
resolution = '1'

data = {
    "symbol": symbol,
    "resolution": resolution,
    "date_format": "1",
    "range_from": start_date,
    "range_to": end_date,
    "cont_flag": "1"
}
response = fyers.history(data=data)

{‘code’: 429, ‘message’: ‘request limit reached’, ‘s’: ‘error’}

what is the cause of this error? How to resolve it?

Hey @111044392693926502465

The rate limit does not depend on a particular API , the count is for all the available API’s
https://myapi.fyers.in/docsv3#tag/Request-and-Response-Structure/paths/~1pet~1%7BpetId%7D/get