@admin my bad, please close my post, it was our code bug, printing the same message twice.
manishthebull
@manishthebull
Best posts made by manishthebull
Latest posts made by manishthebull
-
RE: Getting duplicate MW data
-
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 -
RE: Not finding the complete document can someone please share.
Dear @admin,
I already looked at the document and I couldn't find detailed description of each filed and therefore I am asking this question here.Can you please tell me what is
timeperiod
is it in seconds, minutes or days? and it is the order validity ? -
Not finding the complete document can someone please share.
Can @admin or someone you please share the complete document for SmartAPI, including the unit of time and significance of each fields. as per below GTT example.
Also what would be default values for each fields.
{ "tradingsymbol": "SBIN-EQ", "symboltoken": "3045", "exchange": "NSE", "transactiontype": "BUY", "producttype": "DELIVERY", "price": "195", "qty": "1", "triggerprice": "196", "disclosedqty": "10", <-- how this works? "timeperiod": "20" <-- significance of this field and unit? }
Thanks,
TheBull