Hi Team I am trying to create CO order but not its not working. Should we need to create two requests one for "regular order " and other request for "co order"? I see we need to send order_id as parameter in co order but not clear how we get it. Is there any example request or code is there for CO orders which we can check?
For CO market orders, you have to send only trigger price not limit price field. Price field is meant for CO LIMIT order. You can know more about CO orders here.
I already checked these examples but it is not clear how I can request it using PHP
$post_arr = [
"tradingsymbol" => $request->symble,
"exchange" => "NSE",
"quantity" => 1,
"transaction_type" => "BUY",
"order_type" => "MARKET",
"product" => "MIS",
"price" => "0.00",
"trigger_price" => $request->trigger_price,
];
$order = $kite->placeOrder("co", $post_arr);
Right now I am using above code but it is not working correctly. Can you please let me know what I am doing wrong here.
price
field.Price
field is meant for CO LIMIT order.You can know more about CO orders here.
Thanks for your quick response. It is working now.