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);
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 ?
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.
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 ?