I have created a small python code to gather history data. Why do I too many request error code ?

I am using multiprocessing.Process, with a batch of 20 and I have a total of 180 stocks to scan.

It fetches data for few and few return as 429 error code .. Sample below.

So approximately for 80-90 it fetches data and remaining get 429 error code.

Can someone please help ? What is the number of parallel request I can send without getting error ?

Data gathered for NSE:ACC-EQ

Data gathered for NSE:AARTIIND-EQ

Exception for NSE:IGL-EQ: ‘candles’ , {‘s’: ‘error’, ‘code’: 429, ‘message’: ‘Bad request’}

Exception for NSE:ABBOTINDIA-EQ: ‘candles’ , {‘s’: ‘error’, ‘code’: 429, ‘message’: ‘Bad request’}

Exception for NSE:ADANIENT-EQ: ‘candles’ , {‘s’: ‘error’, ‘code’: 429, ‘message’: ‘Bad request’}

Hi @ranaharsh

You are breaching the rate limit.
Please refer docs for rate limit
https://myapi.fyers.in/docsv3#tag/Request-and-Response-Structure/paths/~1pet~1{petId}/post

So this Per Second with Rate Limit 10 means that I can still send 10 parallel requests in 1 second ? is that correct ?

No
In one second . total 10 request.

oh k! so no multi processing available. and yes I found out when I tried it also got pickle error .

so which means I have to always send the requests in a sequence via for loop in the boundary of the above rate limit. ok got it .

Yes exactly