OnTick method gets zero tick data

sameer
No Tick Data Received ERROR:


1. Subscribed to
895745
884737
975873
with mode text as "full"

2. OnConnected method got called successfully
3. OnTick method also gets called almost every one sec

BUT "size of tick list received(in OnTick method) is ZERO" always (observed for 3 minutes)

Please check, am I missing something ?
  • sameer
    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
  • sujith
    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.
  • sujith
    To change mode, you can use setMode method.
Sign In or Register to comment.