For the getquote() function, is it it 1 quote/second? or is it 1quote/second/instrument? Can you please clarify? Also, what would happen if we exceed this limit?
Hi @arnavsaxena, All http requests are limited to 3 requests per second. If you exceed the limit then your will request will fail with error 'too many requests' and code 429.
I am having a similar problem. I am trying to retrieve quotes through the Zerodha APIs. I am sending one request in every 10 seconds. However, after retrieving 6 quotes, the API is throwing exception.
Do we have a limit on how many quotes can we retrieve using a single connection or in a specified time frame?
@subhasis, All http requests are limited to 3 requests per second and this includes geQuote also. If you are facing issue then I would suggest you use websocket for fetching live market prices.
Thanks for the quick response. I modified my program and just ignoring the exception and trying to fetch the next quote from my list. This way, I can see that some specific symbols are not retrieving the details. I accumulated the list from Zerodha for NSE and removed the symbols for -BL, -BF etc. But still some symbols are not retrieving response. I need to look more closely. Maybe they are not traded or having some problems..
All http requests are limited to 3 requests per second. If you exceed the limit then your will request will fail with error 'too many requests' and code 429.
Do we have a limit on how many quotes can we retrieve using a single connection or in a specified time frame?
BTW, I am using java client.
Thanks.
Subhasis
All http requests are limited to 3 requests per second and this includes geQuote also. If you are facing issue then I would suggest you use websocket for fetching live market prices.
Thanks.
Subhasis
You can use bulk fetch APIs. Check out documentation here.