NodeJS BO Order issue

quadcodes
quadcodes edited June 2018 in API clients
I'm using following code with NodeJs to place my BO order.

kc.placeOrder("bo", {
"exchange": "NSE",
"tradingsymbol": "CANBK",
"transaction_type": "BUY",
"quantity": 200,
"product": "MIS",
"order_type": "LIMIT",
"price" : 100,
"stoploss" : 5,
"squareoff" : 2,
"trailing_stoploss" : 1,
"validity": "DAY"
}).then(function(order) {
console.log(order);
}).catch(function(err) {
console.log(err);
});

I'm able to place BO order. For large quantities, sometimes BO orders are placed in multi-part quantities. Say, ( 150 + 50) for total of 200 qty.

System correctly place leg orders for STOPLOSS. I do get 2 leg orders for STOPLOSS. One with quantity 150 & another with qty 50.

but Trigger/Target order is placed only ONCE with either of the quantity (150 OR 50).
Even Kite orderbook show only ONE Trigger/Target order id.

So I'm unable to exit BO Order for whole quantity as Only one order is placed for Trigger/Target.

Am I placing BO order incorrectly OR is this a system bug ?



  • sujith
    Can you private message your api_key and order id for which this happened?
Sign In or Register to comment.