Getting duplicate MW data


  • 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 :D

    Thanks,
    ManishTheBull



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


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