Navigation

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

    Not getting data from websocket for some stock

    Bugs
    3
    6
    34
    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.
    • 9
      91priyansh last edited by

      not getting live data for all stock (MCX).
      getting this data constantly for this script 225903
      [{tvalue: 29/03/2021 21:40:38, name: tm}]

      output for script mcx_fo|227886
      [{ak: ok, task: cn, msg: connected}]
      I/flutter (15597): [{ak: ok, task: mw, msg: mw}]
      I/flutter (15597): []

      i have run this script in time 5 to 10 still no proper output
      anyone know y this is happening?
      @admin

      J A 2 Replies Last reply Reply Quote 0
      • J
        jiwan1986 @91priyansh last edited by

        @91priyansh You get ticks only when there's any activity on that scrip. The token is for GOLD September option which is not liquid. So you won't get any data. Try to use current month expiry then you'll get ticks.

        9 1 Reply Last reply Reply Quote 0
        • 9
          91priyansh @jiwan1986 last edited by

          @rjbanna ok..do you know when should i close the web_socket?

          9 1 Reply Last reply Reply Quote 0
          • 9
            91priyansh @91priyansh last edited by

            @rjbanna is there any way to determine that now we can close the web_socket ? i am confuse about that..

            J 1 Reply Last reply Reply Quote 0
            • A
              admin @91priyansh last edited by

              Hi @91priyansh we will update you on this.

              1 Reply Last reply Reply Quote 0
              • J
                jiwan1986 @91priyansh last edited by

                @91priyansh You can check if you are receiving ltp in the response or not. If you haven't received ltp let's say for 2 to 3 minutes, you can close the connection. Minutes depends on your choice.

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