It looks like you're new here. If you want to get involved, click one of these buttons!
$url = "https://api.kite.trade/orders/regular/".$orderId."?";
$fields = array(
api_key => $api_key,
access_token => $access_token,
tradingsymbol => $tradingSymbol,
exchange => $exchange,
quantity => $quantity,
transaction_type => $transactionType,
order_type => $orderType,
price => $price1,
validity => "DAY",
product => "MIS"
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($fields));
$response = curl_exec($ch);
curl_close($ch);
$responsedata = json_decode($response, true);
echo "<br/>Response after Modify Order: <br/>";
print_r($responsedata);
I am getting the following response:Array ( [status] => success [data] => Array (, [order_id] => 181016002539023 ) )
Array ( [status] => success [data] => Array (, [order_id] => 181016002539023 ) )
$url = "https://api.kite.trade/orders/regular/".$orderId."?";
You need to fetch orderbook and check the status_message field of that order.