CO order getting executed as MIS

ramatius
Hi,
The below PHP API call is resulting in MIS order instead of a CO,

$order_id = $kite->orderPlace([
"price" => "0",
"validity" => "DAY",
"variety" => "co",
"tradingsymbol" => "EURINR17DECFUT",
"exchange" => "CDS",
"quantity" => 5,
"transaction_type" => "BUY",
"order_type" => "MARKET",
"trigger_price" => "",
"product" => "MIS"
], "co");

This is as per the example given here for CO.

There was no error in API call.

Please advise.
  • sujith
    sujith edited December 2017
    Hi,
    We tried the following code and it seems to be working fine.

    $order_id = $kite->orderPlace(["tradingsymbol" => "INFY","exchange" => "NSE",
    "quantity" => 1, "transaction_type" => "BUY", "order_type" => "MARKET", "product" => "MIS",
    "trigger_price" => 1020, "validity"=> "DAY"], "co");
  • ramatius
    Did it fire a Cover Order or MIS? The API call I've quoted, has fired a MIS order, not CO. It would be great if you can check for CDS and MCX. Appreciate your help on this.
  • ramatius
    ramatius edited December 2017
    @sujith this is a serious issue for us. Please check. Today also it has created MIS trades instead of CO.
  • sujith
    Yes, it went through as a cover order. It seems to be working fine.
    $order_id = $kite->orderPlace(["tradingsymbol" => "EURINR17DECFUT","exchange" => "CDS", "quantity" => 1, "transaction_type" => "BUY", "order_type" => "MARKET", "product" => "MIS", "trigger_price" => 76.15, "validity"=> "DAY"], "co");
  • ramatius
    Found the issue - it is internal; the change in order_type has triggered the MIS logic before it hit the CO part of the code.

    Many thanks for the quick answers @sujith !
This discussion has been closed.