Open jayakarthik-devices opened 2 years ago
Could you drop an email on ks.apihelp@kotak.com with this issue, and your client code. We will have our team check the logs and figure out the problem here.
Hi, could you also share the list of tokens? (you can send it here if you'd like)
@dhwajsinghal I was using weekly tokens with websocket.. So i dont have the tokens I used when issue was originally raised. Moreover since websocket was not working consistently as specified in the issue, I have modified code to use quote method using individual tokens in a loop with 3 seconds gap for each quote request. It is not efficient though. I will try to recreate the issue from my end and will provide you the samples.
I am also facing same issue. I am trying to subscribe below tokens but receiving data for only few tokens.
Tick data is the basic thing that has to be supported without any issues. Can you please subscribe on the below tokens yourself and see whether you receive tick data for all. Other wise try to subscribe more than any 10 tokens and see tick data is received or not for all. Thanks.
21-06-2022 09:47:44 Logged In Successfully 21-06-2022 09:47:48 Index watch added count 1 21-06-2022 09:47:49 Started Listening NIFTY BANK Instrument Token 11717 21-06-2022 09:47:50 TickData Received from 9.15 to 9.30 21-06-2022 09:47:50 Index watch added count 34 21-06-2022 09:47:51 Started Listening BANKNIFTY30JUN2232600PE Instrument Token 20083 21-06-2022 09:47:52 Started Listening BANKNIFTY30JUN2232100PE Instrument Token 98005 21-06-2022 09:47:52 Started Listening BANKNIFTY30JUN2233200CE Instrument Token 20140 21-06-2022 09:47:53 Started Listening BANKNIFTY30JUN2233300PE Instrument Token 16862 21-06-2022 09:47:53 Started Listening BANKNIFTY30JUN2232500CE Instrument Token 20061 21-06-2022 09:47:54 Started Listening BANKNIFTY30JUN2233500PE Instrument Token 16867 21-06-2022 09:47:54 Started Listening BANKNIFTY30JUN2233600CE Instrument Token 16870 21-06-2022 09:47:55 Started Listening BANKNIFTY30JUN2232800CE Instrument Token 17364 21-06-2022 09:47:55 Started Listening BANKNIFTY30JUN2233100CE Instrument Token 17387 21-06-2022 09:47:56 Started Listening BANKNIFTY30JUN2233400PE Instrument Token 16863 21-06-2022 09:47:56 Started Listening BANKNIFTY30JUN2232300CE Instrument Token 95478 21-06-2022 09:47:57 Started Listening BANKNIFTY30JUN2232600CE Instrument Token 20082 21-06-2022 09:47:57 Started Listening BANKNIFTY30JUN2233600PE Instrument Token 17389 21-06-2022 09:47:58 Started Listening BANKNIFTY30JUN2232700CE Instrument Token 20093 21-06-2022 09:47:58 Started Listening BANKNIFTY30JUN2232300PE Instrument Token 95479 21-06-2022 09:47:59 Started Listening BANKNIFTY30JUN2233000CE Instrument Token 35652 21-06-2022 09:47:59 Started Listening BANKNIFTY30JUN2232400PE Instrument Token 20056 21-06-2022 09:48:00 Started Listening BANKNIFTY30JUN2233700PE Instrument Token 20184 21-06-2022 09:48:00 Started Listening BANKNIFTY30JUN2233400CE Instrument Token 20163 21-06-2022 09:48:01 Started Listening BANKNIFTY30JUN2233500CE Instrument Token 20164 21-06-2022 09:48:01 Started Listening BANKNIFTY30JUN2232900CE Instrument Token 17374 21-06-2022 09:48:02 Started Listening BANKNIFTY30JUN2232900PE Instrument Token 17375 21-06-2022 09:48:02 Started Listening BANKNIFTY30JUN2233000PE Instrument Token 35653 21-06-2022 09:48:03 Started Listening BANKNIFTY30JUN2232800PE Instrument Token 20117 21-06-2022 09:48:03 Started Listening BANKNIFTY30JUN2233300CE Instrument Token 20162 21-06-2022 09:48:04 Started Listening BANKNIFTY30JUN2233100PE Instrument Token 20139 21-06-2022 09:48:05 Started Listening BANKNIFTY30JUN2232200CE Instrument Token 98006 21-06-2022 09:48:05 Started Listening BANKNIFTY30JUN2232200PE Instrument Token 98007 21-06-2022 09:48:06 Started Listening BANKNIFTY30JUN2232700PE Instrument Token 16861 21-06-2022 09:48:06 Started Listening BANKNIFTY30JUN2232500PE Instrument Token 20066 21-06-2022 09:48:07 Started Listening BANKNIFTY30JUN2233700CE Instrument Token 17396 21-06-2022 09:48:07 Started Listening BANKNIFTY30JUN2232400CE Instrument Token 20055 21-06-2022 09:48:08 Started Listening BANKNIFTY30JUN2232100CE Instrument Token 98004 21-06-2022 09:48:08 Started Listening BANKNIFTY30JUN2233200PE Instrument Token 20161
Lot of connection messages shown. Option should be provided whether to send this data to us.
Attempting WebSocket connection to wss://wstreamer.kotaksecurities.com/feed/?transport=websocket&EIO=4 WebSocket connection accepted with {'sid': 'BeR3By79Ggd7T2MOBOiw', 'upgrades': [], 'pingInterval': 25000, 'pingTimeout': 5000} Engine.IO connection established Sending packet MESSAGE data 0 Received packet MESSAGE data 0 Namespace / is connected Emitting event "pageload" [/] Sending packet MESSAGE data 2["pageload",{"inputtoken":"20082"}] Received packet MESSAGE data 2["message","Welcome to StreamerIO (Build: 20200709)."] Received event "message" [/] Received packet MESSAGE data 2["message","Welcome to StreamerIO (Build: 20200709)."] Received event "message" [/]
Team, I had already subscribed to websocket for streaming service. While I execute subscribe function, it always gives constant data feed like this, doesn't give instument details.
Attempting WebSocket connection to wss://wstreamer.kotaksecurities.com/feed/?transport=websocket&EIO=4 WebSocket connection accepted with {'sid': 'L2xcXDcUn89frYW0AeK8', 'upgrades': [], 'pingInterval': 25000, 'pingTimeout': 5000} Engine.IO connection established Sending packet MESSAGE data 0 Received packet MESSAGE data 0 Namespace / is connected Received packet MESSAGE data 2["message","Welcome to StreamerIO (Build: 20200709)."] Emitting event "pageload" [/] Sending packet MESSAGE data 2["pageload",{"inputtoken":"1517"}] Received event "message" [/] Received packet MESSAGE data 2["message","Welcome to StreamerIO (Build: 20200709)."] Received event "message" [/] packet queue is empty, aborting Exiting write loop task Server has stopped communicating, aborting Waiting for write loop task to end Engine.IO connection dropped Connection failed, new attempt in 0.56 seconds Exiting read loop task
What could be the reason for this, kindly help.
@dhwajsinghal, @sanket-parte , @paramatrixtech I am passing list of 11 tokens to the websocket subscribe method. Out of the tokens, one is token number for Nifty50 Spot and rest 10 token numbers are for options (5 token for PE and 5 token for CE). The output I am receiving through websocket is not passing Nifty50 Spot details. Also out of 10 option tokens websocket is returning only for 6 or 7 token randomly. What could be the issue ?
Note: If I subscribe only for Nifty 50 Spot, then i get result through websocket. Also if I subscribe for the missing option tokens separately I am getting output through websocket. So the missing results are random if clubbed together. How to address this issue.
Can you please suggest some solution.