i am able to place a order from my php application but i am not getting the order ID. the code i am using is pasted below. I request you to please help me with the below code. thank you.
$order_id is an object here(placeOrder return), you need to get order_id field from this. $order_id->order_id. If you want to print order id, it should be echo "Order id is ".$order_id->order_id;
$order_id->order_id
. If you want to print order id, it should beecho "Order id is ".$order_id->order_id;
But I am getting 500 http error. I am using the below code.
$order_id = $kite->placeOrder("amo", [
"tradingsymbol" => 'SBIN20DECFUT',
"exchange" => "NFO",
"quantity" =>3000,
"transaction_type" =>'BUY',
"order_type" => "LIMIT",
"price" => '270',
"product" => 'NRML'
])["order_id"];
echo "Order id is ".$order_id->order_id;