Making Async Calls With FYERS Historical API

Hello

I see that there is an option to set async=True in FYERS Historical data api. I need to fetch historical data for 200 securities at a time as fast as possible. Now I know that there is a rate limit of 10 requests/second. Can someone give me an example code of how to use async feature of FYERS api to get historical candle data for 200 securities with constraint of 10 requests/sec ?

Thank you

Amit

Hey @amit.kx5vszf5 ,

As of now for fetching historic data for 200 securities you need make request for 10 securities then wait for a second then make requests for another 10.

now each of those requests are gonna take more than 1/10 of a second to return results. how can i use async api call to fire all the 10 requests at T0, then again at T0 + 1 sec and so on ?