I m not getting ticker for following even after subscribing it. Through the same code, I m getting ticks for other stocks like Reliance, HDFC etc... ITC (424961) ICICIBANK (1270529) HCLTECH (1850625) LT (2939649)
@sujith - there is no error reported, only issue is tick is not being received even after subscription. Is it the correct instrument token which I mentioned above?
/** Set error listener to listen to errors.*/ tickerProvider.setOnErrorListener(new OnError() { @Override public void onError(Exception exception) { System.out.println(exception.getLocalizedMessage()); }
@Override public void onError(KiteException kiteException) { System.out.println(kiteException.message); System.out.println(kiteException.getLocalizedMessage());
}
public void onError(String error) { System.out.println(error); } });
/** Set error listener to listen to errors.*/
tickerProvider.setOnErrorListener(new OnError() {
@Override
public void onError(Exception exception) {
System.out.println(exception.getLocalizedMessage());
}
@Override
public void onError(KiteException kiteException) {
System.out.println(kiteException.message);
System.out.println(kiteException.getLocalizedMessage());
}
public void onError(String error) {
System.out.println(error);
}
});