Awesome thanks! It resolves my issue, but I think technically the exception is incorrect it should throw invalid symbol (or mention wrong api call for indices.) i might be wrong and you could have better justification.
Hi @tpjob2014, JSONException you encountered is thrown because javakiteconnect can't convert indices json response to Quote Object. The same exception can happen when javakiteconnect receives broken json. So it is not good idea to hard code any error message. So we have alternate api for indices.
PS: To make it easy for others who come across the same scenario, we will update comments of getQuote().
To get Quote for indices, use getQuoteIndices() method as demonstrated here.
JSONException you encountered is thrown because javakiteconnect can't convert indices json response to Quote Object. The same exception can happen when javakiteconnect receives broken json. So it is not good idea to hard code any error message. So we have alternate api for indices.
PS: To make it easy for others who come across the same scenario, we will update comments of getQuote().