getTriggerPrice is not working

amsarajan21
In my case , the example shown in the java client is not working, i am getting triggerRangeMap as empty resulting in null pointer exception.


/** Get trigger range.*/
public void getTriggerRange(KiteConnect kiteConnect) throws KiteException, IOException {
// You need to send transaction_type, exchange and tradingsymbol to get trigger range.
String[] instruments = {"BSE:INFY", "NSE:APOLLOTYRE", "NSE:SBIN"};
Map triggerRangeMap = kiteConnect.getTriggerRange(instruments, Constants.TRANSACTION_TYPE_BUY);
System.out.println(triggerRangeMap.get("NSE:SBIN").lower);
System.out.println(triggerRangeMap.get("NSE:APOLLOTYRE").upper);
System.out.println(triggerRangeMap.get("BSE:INFY").percentage);
}
  • sujith
    Thank you for pointing out. We have informed the concerned team and they are looking into this.
Sign In or Register to comment.