@Moderator_3 I want to place stoploss limit order. So that I buy security at desired price. What is the way to place robo order for stoploss limit order with trailing stoploss
V
vksaini
@vksaini
0
Reputation
2
Posts
1
Profile views
0
Followers
0
Following
Best posts made by vksaini
This user hasn't posted anything yet.
Latest posts made by vksaini
-
RE: trailing stoploss not working using api
-
trailing stoploss not working using api
def place_order(symbol, token, limit_price, trigger_price, quantity, stoploss, target, trailing):
try:
orderparams = {
"variety": "ROBO",
"tradingsymbol": symbol,
"symboltoken": token,
"price": limit_price,
"triggerprice": trigger_price,
"quantity": quantity,
"transactiontype": "BUY",
"exchange": "NFO",
"ordertype": "STOPLOSS_LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"squareoff": target,
"stoploss": stoploss,
"trailingStopLoss": trailing
}
p = smartApi.placeOrderFullResponse(orderparams)
print("order placed from place_order function..")
return p
except:
print("order placement failed from place_order function..")
return None
Trailing stoploss is not working. could you please look into it .