How to modify order from Market Type in order to apply Stoploss
-
Hi @Moderator_3 , @Moderator_2 , @admin ,
Suppose I am placing a order with variety : NORMAL and ordertype: MARKET , in order to place the order at the current price. Now, after some time I apply stoploss to this order using AngelOne app with help of exit button and applying stoploss and triggerprice.
But I want to apply stoploss and triggerprice using smartapi. And I am not sure what should be the body of the request that I sent to the modifyOrder endpoint.
Like : {
"variety":"NORMAL",
"orderid":"201020000000080",
"ordertype":"STOPLOSS",
"producttype":"INTRADAY",
"duration":"DAY",
"price":"0",
"quantity":"1",
"tradingsymbol":"SBIN-EQ",
"symboltoken":"3045",
"exchange":"NFO",
"stoploss" : "210.00"
}
Will this work??
Basically I am not sure what should be the ordertype, and whether we should keep price as 0 or price as stoploss value, and keep stoploss to be 0 ?? -
@Moderator_3 Alright, Thanks a lot
-
Hello @rohit4417k
If the veriety is NORMAL then it won't be applicable
But if the verietyis STOPLOSS then it is applicableRegards,
SmartAPI Team -
@Moderator_3 The table on documentation page says stoploss and triggerprice is only valid for BRACKET ORDER.
I want to know if we have functionality to mention stoploss and triggerprice on normal market order or not? As it is supported on AngelOne app? -
Hello @rohit4417k
Kindly go through the below attached link
https://smartapi.angelbroking.com/docs/OrdersRegards,
SmartAPI Team