Instrument Tokens for KiteTicker Subscription not returning anything

phantomdrake
Hey @sujith,
I may be missing something here but the Ticker Subscription is not returning anything. Is it because the market is closed ?

//Sample Instrument tokens that i was trying.
ArrayList tokens = new ArrayList<>();
tokens.add(2953217L);
tokens.add(128053508L);
kiteTickerApi.tickerUsage(kiteConnect, tokens);

Warm Regards
  • phantomdrake
    This is what I get back: ticks size 0
  • phantomdrake
    phantomdrake edited February 2018
    Ok further debugging

    ArrayList tokens = new ArrayList<>();
    Long token1 = new Long(408065);
    Long token2 = new Long(884737);

    The First call to setOnTickerArrivalListener on the Reading Thread has the values. It is the subsequent calls to the method that has no ticks! How is this a listener then ? Meaning if there are no ticks why is this method called ?
  • sujith
    sujith edited February 2018
    The Kite Ticker will send heartbeat ping every second which denotes connection is still active. Hence you get ticks with the array with size 0. When you subscribe to an instrument, first you will receive a cached tick and henceforth you will receive ticks only when there is a change in data.
  • phantomdrake
    Sure thanks @sujith got it working today! Thanks for your help!
This discussion has been closed.