set_mode seems to be not working

prakash.jj
Hi, I tried setting the mode to MODE_FULL on websocket subscription, but that doesnt seems to work, I am getting the mode as Quote in the response. Is there any issue currently with this?
  • prakash.jj
    I am mainly looking to get the market depth using the steaming API...
  • Vivek
    @prakash.jj Are you using any official client for streaming? Also sometime after market its possible that you get the first tick before even the mode ltp call is received. For example
    ws.subscribe([738561])
    ws.set_mode(ws.MODE_LTP, [738561])
    You got the first tick as mode quote because is the default mode and you don't get subsequent ticks because market is over.
  • prakash.jj
    @vivek am sure I checked during market hours as well and it was the same behaviour. I will recheck it again tomorrow and I will let you know.
  • prakash.jj
    @vivek I tried again now and I can see the same response without depth and the mode is set as Quote.

    I have one connection open with Mode as Quote and I was trying to experiment with getting the full mode with another connection. Do you think that could be an issue?
Sign In or Register to comment.