What are the limits for getquote()?

arnavsaxena
Hi,

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?

Best, Arnav
Tagged:
  • sujith
    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.
  • subhasis
    subhasis edited April 2017
    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?

    BTW, I am using java client.

    Thanks.

    Subhasis
  • sujith
    @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.
  • subhasis
    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..

    Thanks.

    Subhasis
  • anthonyabhilashp
    I am also facing the same issue. I am able to send only one request in one second. Please clarify the limit count persecond
  • sujith
    @anthonyabhilashp,
    You can use bulk fetch APIs. Check out documentation here.
  • anthonyabhilashp
    @sujith Thanks sujith, it helped
This discussion has been closed.