We fetch GetOrderBook but we need only open orders.
How can we get only open orders?
kapuvala
@kapuvala
Best posts made by kapuvala
Latest posts made by kapuvala
-
How can We get Open orders?
-
RE: Historic API not working
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; }
-
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?
-
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?
-
RE: HIstorical API not working
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?
-
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.