Error: javakiteconnect - KiteConnect.getQuote

NTRADE
Error: javakiteconnect - KiteConnect.getQuote

org.json.JSONException: JSONObject["data"] not found.
at org.json.JSONObject.get(JSONObject.java:520)
at com.zerodhatech.kiteconnect.KiteConnect.getQuote(KiteConnect.java:728)
  • sujith
    Can you run with debug logs on and paste the complete stack trace here?

    PS: Make sure to remove app and client specific tokens.
  • NTRADE
    Please guide how to run with debug mode
  • NTRADE
    Code line is:
    final Map stockData = kiteConnect.getQuote(tokens);

    Here tokens is a String array ["1285121", "2885377"]

    Error stack trace:
    JSONObject["data"] not found.
    org.json.JSONException: JSONObject["data"] not found.
    at org.json.JSONObject.get(JSONObject.java:520)
    at com.zerodhatech.kiteconnect.KiteConnect.getQuote(KiteConnect.java:728)
    at kite.KiteStocks.updateHDwithLTP(KiteStocks.java:53)
  • sujith
    You can refer to this example here.
  • NTRADE
    Have done the same thing.
    Code was working for last several months. Started getting error today.
  • sujith
    Can you run in debug mode and paste the complete stack trace here?
    PS: Make sure to remove app and client specific tokens.
Sign In or Register to comment.