getCandleData is returning null for historical dates


  • trying to get Data for SBIN here is code snippet
    login successful and totp is accepted before calling this api
    JSONObject requestObejct = new JSONObject();
    requestObejct.put("exchange", "NSE");
    requestObejct.put("symboltoken", token);
    requestObejct.put("interval", "ONE_DAY");
    requestObejct.put("fromdate", "2023-08-01 09:00");
    requestObejct.put("todate", "2023-08-10 15:35");

    String response = smartConnect.candleData(requestObejct);
    System.out.println("response : "+response);


  • Any update on this? Even I am getting same issue