Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. kapuvala
    K
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    kapuvala

    @kapuvala

    1
    Reputation
    6
    Posts
    5
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    kapuvala Follow

    Best posts made by kapuvala

    This user hasn't posted anything yet.

    Latest posts made by kapuvala

    • How can We get Open orders?

      We fetch GetOrderBook but we need only open orders.
      How can we get only open orders?

      posted in General Discussion
      K
      kapuvala
    • RE: Historic API not working

      @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;
      }
      
      posted in Bugs
      K
      kapuvala
    • RE: Issue with getLTP for Nifty/Banknifty

      @admin
      I try many times to get LTP data but it's through error.

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

      Do you have any solutions?

      posted in Bugs
      K
      kapuvala
    • RE: Historical API Not working FEB 14 2023

      I try many times to get LTP data but it's through error.

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

      Do you have any solutions?

      posted in Bugs
      K
      kapuvala
    • RE: HIstorical API not working

      @jaskirat1208

      I try many times to get LTP data but it's through error.

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

      Do you have any solutions?

      posted in Bugs
      K
      kapuvala
    • Get Current Price Syntax Error Issue

      $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;
      }
      

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

      How can I solve this error let me know where is my mistake about syntax or parameters.

      posted in General Discussion
      K
      kapuvala