Hi,
String exchange = "NSE";
String tradingSymbol = "NIFTY";
String symboltoken = "26000";
JSONObject ltpData = smartConnect.getLTP(exchange, tradingSymbol, symboltoken);
logger.info(ltpData.toString());
2023-12-04 13:06:47,865 ERROR [main] com.angelbroking.smartapi.SmartConnect: JSONObject["data"] is not a JSONObject (class org.json.JSONObject$Null : null).