Sending 1 request per second still showing exception

hmayur
hmayur edited January 2019 in PHP client
Hello sir
can you help for the error
i am using ajax to fetch live data
i am using getLTP function to send request .

i am fetching data per second but showing me some time to many request thrown.
\

please check the screenshoots and codes.

these is the jquery code
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> 
<script type="text/javascript">
function txtdisplay(){
$.ajax({
type: "POST",
url:"ajax.php",
data:"data1=get",
success:function(html){
$("#currentprice").html(html);
}
});
}
setInterval(function(){
txtdisplay();
},1000);

</script>
<div id="currentprice"></div>



<img src="https://kite.trade/forum/uploads/editor/vx/bom08w7ccijc.png" alt="" />
<img src="https://kite.trade/forum/uploads/editor/1q/3n3a9qz455is.png" alt="" />

both files i have attached can you please help me for that.
thanks
13.png 15.5K
12.png 147.7K
  • sujith
    Hi @hmayur,
    You can check out the API rate limit here.

    You can either send the request for multiple instruments with more interval or use Kite Ticker from kiteconnectjs library.
  • hmayur
    In php library its not possible to do.

    Because I am sending 1 request per second still its showing these error SOMETIME

    Not all the times
  • sujith
    You will receive this error only when you exceed the rate limits.
    phpkiteconnect doesn't have websockets feature.
Sign In or Register to comment.