Getting error 400 for BO orders

tusharsapkale
tusharsapkale edited February 2019 in PHP client
I am getting the following error for bo order

Fatal error: Uncaught InputException (400) 'Missing or empty field `exchange`'

thrown in /opt/lampp/htdocs/kiteconnect.php on line 899


My Code

$o = $kite->placeOrder("BO", [
"tradingsymbol" => "INFY",
"exchange" => "NSE",
"quantity" => 1,
"transaction_type" => "BUY",
"order_type" => "LIMIT",
"price" => 770,
"product" => "MIS",
"squareoff" => 5,
"stoploss" => 5
]);
Sign In or Register to comment.