how can I modify SL / trigger pending order for NFO ?
-
Hi Team
I order robo order with below request
and please note tradingsymbol,symboltoken,transactiontype come with functionsparams = {
"variety":"ROBO",
"tradingsymbol":tradingsymbol,
"symboltoken":,symboltoken,
"transactiontype":transactiontype,
"exchange":"NFO",
"ordertype":"LIMIT",
"producttype":"INTRADAY",
"duration":"DAY",
"price":getltp,
"squareoff":50,
"stoploss":50,
"trailingStopLoss":0.5,
"quantity":quantity
}
print(params)
response = obj.placeOrder(params)let's say my order executed at at 274.60 price
and I can see two open orders with the same order_id(240110000768662), but different uniqueorderid224.20 trigger pending -- squareoff
324.20 open --stoplossand I'm planing to modify either stoploss or squareoff
then how can I do it ?
is it possible to do itbelow way I tried
mod = {
"variety":"NORMAL",
"orderid":"240110000768662",
"ordertype":"LIMIT",
"producttype":"INTRADAY",
"duration":"DAY",
"price":"320",
"quantity":"15",
"tradingsymbol":"BANKNIFTY17JAN2447600CE",
"symboltoken":"35498",
"exchange":"NFO"
}
modres = obj.modifyOrder(mod)
print(modres)
I got below response
{'status': True, 'message': 'SUCCESS', 'errorcode': '', 'data': {'orderid': '240110000768662', 'uniqueorderid': 'e33903f1-ba4d-45f1-a82d-520202767e0b'}}But didn't changed anything on orders/orders history
Please can any one assist on request parameters
if I want to modify only SL at leastThanks in Advance
Shashi -
I have the same issue, looking for the solution too