Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    LTP issue

    Test
    0
    5
    20
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mnagesh
      Mnagesh last edited by

      cfa3b004-a7f0-43f1-b918-ffe44faf94bb-image.png

      efc8f1dd-4218-4d7e-9276-17f152ecdcc8-image.png

      Ltp exception occurred

      I am looping 25 times if there is a exception at a gap of 0.2 secs !!!

      But still we are unable to fetch the LTP at one point of time .

      My i know reason.
      kindly fix the error
      my algo needs needs ltp other wise it will terminate because of non ltp value.

      this problems was there before but with the exception we could handle buy 0.2 sec time 25 is 5 secs which is too large delay .

      should i increase the loop count more ?
      if i do so my algo will be affected .

      @Moderator_1
      @Moderator_2

      Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

      L Mnagesh 2 Replies Last reply Reply Quote 0
      • L
        laxm @Mnagesh last edited by

        @Mnagesh @Moderator_1 @Moderator_2
        Same issue from few weeks.

        Mnagesh 2 Replies Last reply Reply Quote 0
        • Mnagesh
          Mnagesh @laxm last edited by

          @laxm issue occurred exactly afternoon at 13:52:30 secs

          up to 13:52 mins my algo was running fine .

          since I was in work I could not rerun my algo and laptop was in home .

          i am having data upto 13:52 mins and afterword my script terminated due to error in ltp fetch !🙋

          Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

          1 Reply Last reply Reply Quote 0
          • Mnagesh
            Mnagesh @laxm last edited by

            @laxm 13:52:21 NIFTY25APR2421800CE 372.15
            you can see my last ltp
            and then gone case

            Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

            1 Reply Last reply Reply Quote 0
            • Mnagesh
              Mnagesh @Mnagesh last edited by

              @Moderator_1
              @Moderator_2

              this the body of our function

              while x < 25:
                      try:
                          ltp = obj.ltpData(exchange ,symbol, token)    
                          
                          break 
                      except:
                          sleep(0.15)
                          print('Ltp exception')
                          x = x + 1
              

              Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post