Unable to fetch candleData


  • java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'
    	at com.angelbroking.smartapi.http.SmartAPIRequestHandler.createPostRequest(SmartAPIRequestHandler.java:305) ~[smartapi-java-1.0.0.jar:na]
    	at com.angelbroking.smartapi.http.SmartAPIRequestHandler.postRequest(SmartAPIRequestHandler.java:132) ~[smartapi-java-1.0.0.jar:na]
    	at com.angelbroking.smartapi.SmartConnect.generateSession(SmartConnect.java:171) ~[smartapi-java-1.0.0.jar:na]
    

    @admin I am getting above error while try to generate session using smartConnect.generateSession(<clientId>, <password>);

    Please check and fix this.

    Also I am getting json exception while getting candleData

    I had made temporary fix for candle data method, and now data is not coming from candleData method, getting below response

    {"data":[],"message":"SUCCESS","errorcode":"","status":true}
    

    if try to get same thing via postman its working fine, I am getting data as below.

    {
        "status": true,
        "message": "SUCCESS",
        "errorcode": "",
        "data": [
            [
                "2021-04-01T09:15:00+05:30",
                20.4,
                20.4,
                20.05,
                20.05,
                161
            ]
        ]
    }
    

    please check and fix above 3 issues.


  • @admin Hello, is the above issue with fetching candle data fixed?
    Still getting the error when calling candledata


  • HI @knbreddy we have reported this we will update once fixed.