Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Historic API not working

    Test
    0
    32
    259
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kapuvala @whemant last edited by

      @whemant

      I got also the same error when I used the GetLTP function in PHP.

      {"status":"success","http_code":500,"http_error":"Syntax error or empty or invalid parameter pass","response_data":null}

      This is my code:

      $GetLtpData = $smart_api->GetLTP(["exchange" => "NSE", "tradingsymbol" => "BANKNIFTY", "symboltoken" => "26009"]);

      public static function GetLTP($paramArray){

          extract($paramArray);
      
          //getToken() check whether userlogged in or not and return jwtToken
          $token = self::getToken();
      
          if ($token['status'])
          {
              //jwtToken not empty
              $jwtToken = $token['jwtToken'];
      
              //get url from config file
              // $UrlData = AngelConfigrationManage::AngelConfigrationData();
              // $url = $UrlData['root'].$UrlData['candle_data'];
      
              $url = "https://apiconnect.angelbroking.com/order-service/rest/secure/angelbroking/order/v1/getLtpData";
      
      
              // Common function to call smart api
              $response_data	=	self::CurlOperation($url,$paramArray, $jwtToken,'POST');
          }else{
              $response_data['status'] = 'fail';
              $response_data['error'] = 'The token is invalid';
              $response_data	=	json_encode($response_data);
          }
      
          return $response_data;
      }
      
      1 Reply Last reply Reply Quote 0
      • A
        ackshay last edited by

        Facing same issue, @admin kindly look into this.

        1 Reply Last reply Reply Quote 0
        • A
          A584622 @whemant last edited by

          @admin @admin123 I am also facing same issue since morning. Pl. resolve.

          P 1 Reply Last reply Reply Quote 9
          • M
            manojbmgr last edited by

            same hear

            1 Reply Last reply Reply Quote 0
            • P
              pashriva last edited by

              @admin @admin123 @administrators
              +1 Facing same issue. Please fix this.

              1 Reply Last reply Reply Quote 7
              • P
                prajju809 last edited by

                I am new to working with API
                yesterday my code was working fine. but oday i got a error
                "Historic Api failed: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'"
                but I dont knw why this error is coming. I was debugging my code from morning. Is it a server error from Angel one? or my code error..
                does this lead is also about the same issue I am facing?

                1 Reply Last reply Reply Quote 0
                • N
                  nitish.bane last edited by nitish.bane

                  @admin I am also facing same issue randomly. It was working until yesterday

                  1 Reply Last reply Reply Quote 5
                  • P
                    pramodkr @A584622 last edited by

                    @A584622 I am also facing same issue

                    1 Reply Last reply Reply Quote 0
                    • O
                      Omsiavi last edited by

                      @admin123 @admin still facing the issue today as well. Please respond and resolve

                      1 Reply Last reply Reply Quote 0
                      • S
                        sureAngel last edited by

                        @admin facing similar issue. Kindly check the issue.

                        1 Reply Last reply Reply Quote 2
                        • M
                          Miz last edited by

                          @admin Facing same issue, please resolve

                          1 Reply Last reply Reply Quote 0
                          • R
                            ramesh123 last edited by

                            @admin I am too facing the issue. kindly check and resolve

                            1 Reply Last reply Reply Quote 0
                            • P
                              Phanilbb last edited by

                              facing similar issue..

                              1 Reply Last reply Reply Quote 1
                              • V
                                Ved last edited by

                                i have 403 error. I fetch 2 time per minute. please increase limit

                                1 Reply Last reply Reply Quote 1
                                • L
                                  laskshmi last edited by

                                  Same issue here too.

                                  Access denied because of exceeding access rate
                                  

                                  9894182e-1e9b-47ef-9405-b8e4a2759ddf-image.png

                                  @admin @administrators Please take a look

                                  R 1 Reply Last reply Reply Quote 3
                                  • P
                                    prajju809 last edited by

                                    i am also facing same issue

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      ramanagajula1999 last edited by

                                      @admin , I am able to get the LastTradingPrice of an instrument, But History API is not working for me as well. Can you resolve the history API issue asap please.?

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        ramanagajula1999 @laskshmi last edited by

                                        @admin123 @admin , facing the similar issue. Any update on this issue?

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          NaitikJyani last edited by

                                          facing similar issue

                                          1 Reply Last reply Reply Quote 1
                                          • R
                                            ramesh123 last edited by

                                            @admin i am also facing similar issue kindly resolve

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post