Trigger Price not Working in BO

sreejithakazhipurath
Hi All,

I have created the publisher button with the below code - I am trying to place a BO

KiteConnect.ready(function() {
// Initialize a new Kite instance.
// You can initialize multiple instances if you need.
var kite = new KiteConnect("XXXXXXXXXXXXXXXX");
kite.add({
"tradingsymbol": "WIPRO",
"exchange": "NSE",
"transaction_type": "Buy",
"order_type": "LIMIT",
"product": "MIS",
"price": 300,

"quantity": 10,
"variety": "bo",
"stoploss": 20,
"squareoff": 20,

"trailing_stoploss": 10,
"readonly": true
});


The above code is working but the problem is it is getting triggered at Market price and not waiting till it reaches 300.

Now I added the below code for bo with SL

KiteConnect.ready(function() {
// Initialize a new Kite instance.
// You can initialize multiple instances if you need.
var kite = new KiteConnect("XXXXXXX");
kite.add({
"tradingsymbol": "WIPRO",
"exchange": "NSE",
"transaction_type": "Buy",
"order_type": "SL",
"product": "MIS",
"price": 300,
"trigger_price":300,
"quantity": 10,
"variety": "bo",
"stoploss": 20,
"squareoff": 20,

"trailing_stoploss": 10,
"readonly": true
});


When I add this parameter the button is not working.

Please help

Thanks
Sree
  • sreejithakazhipurath
    sreejithakazhipurath edited August 2018
    Any Help on the above - I also tried bo order with SL removing the below line


    "trigger_price":300,

    But now the order is rejected stating "Invalid Trigger Price Entered"

    Please help

    Thanks
    Sree
Sign In or Register to comment.