Only 2 out 10 getQuote API call is working

sin
GetQuote is giving proper response only 20% of the times, for rest 80% of times it throws exception. To get the response I need to call the API in a loop till I get the response.

Am I missing anything?
  • sujith
    Hi @sin,
    Can you elaborate what you are trying to do with getQuote?
  • sin
    For my usecase, I need to get Quote for 100+ symbols in a loop. When I do this, it fails. I need to run outer loop to cover the failed symbols and run indefinitely till I get response for atlas 90% of symbols.

    Why getQuote API fail in an attempt, but it works again on next attempt.

    How do I overcome this?
  • fury1984
    @sin what you are doing is inefficient at two ends: 1) zerodha servers get clogged with API calls for live quotes 2) your system resources held up with API calls, which is resource intensive

    You need to go to websockets for getting live data... You can stream for 200 symbols without any issues.
  • sin
    Got it. Will go with WebSocket. Thanks
This discussion has been closed.