BO order not getting triggered

cmurthy
Hi there,

I am passing the below parameters as explained at link - https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java

var params = {
quantity: quantity,
order_type: "LIMIT",
//price: signalDetails.triggerPrice,
price: 839,
transaction_type: signalDetails.stockSignal,
tradingsymbol: signalDetails.stockName,
trailing_stoploss: 0.05,
stoploss_value: stoploss_value,
exchange: "NSE",
validity: "DAY",
squareoff_value: squareoff_value,
product: "MIS",
disclosed_quantity: disclosed_quantity
}

But the BO order is not getting triggered instead a limit order is placed? Could you please guide me on what I am missing
  • sujith
    Hi @cmurthy,
    Are you sending variety as "bo"?
  • cmurthy
    cmurthy edited March 2017
    no, should I sentd variety as BO?
    This is not mentioned in the documentation..
  • sujith
    sujith edited March 2017
    It should be "bo" lower case.
  • cmurthy
    cmurthy edited March 2017

    Hi Sujith,

    Also doesnt work, even lowercase "bo", please suggest..
    var params = {
    variety: "bo",
    //quantity: quantity,
    quantity: 1,
    order_type: "LIMIT",
    //price: signalDetails.triggerPrice,
    price: 839,
    transaction_type: signalDetails.stockSignal,
    tradingsymbol: signalDetails.stockName,
    trailing_stoploss: 0.05,
    stoploss_value: stoploss_value,
    exchange: "NSE",
    validity: "DAY",
    squareoff_value: squareoff_value,
    product: "MIS",
    //disclosed_quantity: disclosed_quantity
    };

  • cmurthy
    any hints?
  • sujith
    @cmurthy,
    For orderPlace(params, variety) what is your second argument?
  • cmurthy
    thanks sujith, yes I was missing variety as second parameter for orderPlace and was trying to pass variety in the parmas json. Just tested and it works fine thank you again.
This discussion has been closed.