Navigation

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

    Getting duplicate MW data

    General Discussion
    java marketwatch websocket
    2
    4
    49
    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.
    • M
      manishthebull last edited by manishthebull

      Hi @admin ,

      I am subscribing to MW websocket feed with this example

      {"task":"mw","channel":"nse_cm|2885","token":"MY_FEED_TOKEN","user": "MY_ACC_ID","acctid":"MY_ACC_ID"}
      and output looks like below, can you please help me understand, why I am getting absolute duplicate output, what could have been done to exclude duplicate, I do not want to handle this in my code.

      [{"e":"nse_cm","tk":"2885","name":"sf","ltq":"55","ltp":"2164.95","ltt":"NA"}]
      [{"e":"nse_cm","tk":"2885","name":"sf","ltq":"55","ltp":"2164.95","ltt":"NA"}]
      
      [{"tbq":"226601","lo":"2162.15","c":"2164.25","e":"nse_cm","ltq":"55","ltp":"2164.95","ltt":"18/08/2021 12:42:21","bp":"2164.35","bq":"36","ap":"2173.71","bs":"254","tsq":"742319","nc":"00.03","v":"2907975","tk":"2885","name":"sf","to":"6321094337.25","sp":"2164.95","cng":"00.70"}]
      [{"tbq":"226601","lo":"2162.15","c":"2164.25","e":"nse_cm","ltq":"55","ltp":"2164.95","ltt":"18/08/2021 12:42:21","bp":"2164.35","bq":"36","ap":"2173.71","bs":"254","tsq":"742319","nc":"00.03","v":"2907975","tk":"2885","name":"sf","to":"6321094337.25","sp":"2164.95","cng":"00.70"}]
      
      [{"tvalue":"18/08/2021 12:42:22","name":"tm"}]
      [{"tvalue":"18/08/2021 12:42:22","name":"tm"}]
      

      Also these are not realtime feed, the ltt does not include milliseconds, how can we get millis ?

      Please do not reference me back to the document 😄

      Thanks,
      ManishTheBull

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @manishthebull last edited by

        HI @manishthebull We will get back to you once we test this.

        M 1 Reply Last reply Reply Quote 0
        • M
          manishthebull @admin last edited by

          @admin my bad, please close my post, it was our code bug, printing the same message twice.

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @manishthebull last edited by

            HI @manishthebull ok.

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