After I place Buy order i want handle stoploss according to my Conditions how i modify order afer place and change stoplosss.
-
this for buy { variety: "STOPLOSS",
tradingsymbol: tradingSymbol,
symboltoken: token,
transactiontype: "BUY",
exchange: "NFO",
ordertype: "STOPLOSS_MARKET",
producttype: "CARRYFORWARD",
duration: "DAY",
quantity:15,
price,
stoploss: price * 0.5,
squareoff: "0",
triggerprice:price}
this for modify
{
orderid: orderid,
variety: "STOPLOSS",
symboltoken: token,
tradingsymbol:tradingSymbol,
exchange: "NFO",
ordertype: "STOPLOSS_MARKET",
producttype: "CARRYFORWARD",
duration: "DAY",
price: latestPrice,
quantity: qty,
stoploss:stopLoss}
@admin not set stoploss and also not modifys it.