Question on rate limits

cryptonoob321
I understand that the Quote API has a rate limit of 1r/s. I want to ask, what timeframe are the requests calculated?

Suppose I have 3 different scripts, all making a quote API call. In order to stay within the rate limit, I set a sleep timer of say 5 secs in each of the scripts. But if the loops in each of the 3 scripts are running exactly synchronously, it will mean that I make 3 quote requests every 1st, 6th, 11th, 16th second etc. So will rate limit be triggered? Or will your server calculate that over say a 10 second period I am making only 6 requests so it will not trigger rate limit.
  • ANL
    ANL edited September 26
    According to your logic, 3 scripts are running synchronously, so your three programmes will call the quote API three times per second or at the same time. This may lead to hit rate limit. 1 r/s per app. If you setup multiple apps, this won't be an issue because you are calling from 3 apps. change time for calling one by one, you can tackle easily.
Sign In or Register to comment.