OK realized mistake. I had called setMode instead of subscribe. Please let me know the diff between setMode and subscribe and how they can be used in sequence
Ticker has three modes, 1. modeFull. Full quote inlcudes market depth and size of data is 172 bytes. 2. modeQuote. Quote includes LTP, volume traded, total buy/sell, OHLC, excluding market depth and size of data is 52 bytes. 3. modeLTP includes only LTP and size of data is only 4 bytes.
By default when you subscribe for a token, It subscribes with modeQuote. If you want marketdepth then change mode to full or else if you need only want price then use modeLTP.
1. modeFull. Full quote inlcudes market depth and size of data is 172 bytes.
2. modeQuote. Quote includes LTP, volume traded, total buy/sell, OHLC, excluding market depth and size of data is 52 bytes.
3. modeLTP includes only LTP and size of data is only 4 bytes.
By default when you subscribe for a token, It subscribes with modeQuote. If you want marketdepth then change mode to full or else if you need only want price then use modeLTP.