OR you may place a separate opposite side Stop-Limit SL-L order for StopLoss.
stopPrice (Trigger Price) and stopLoss (SL) are different parameters.
stopLoss parameter is valid ONLY in CO/BO product type of orders.
stopPrice (Trigger Price) parameter is valid ONLY for type 3 & 4 (SL-M, SL-L) orders
I think stopLoss will be the difference between limitPrice and SL level ( in that case, it should be 20). Similarly takeProfit will be the difference between limitPrice and target level (that is 40 here).
Subhajit Bhar… that’s a good question. The documentation is insufficient to clarify this. BUT if you see in Fyers Web for CO order, the auto-value prepopulated is absolute price value for stopLoss (Rs. 90 for example) and NOT the Risk (difference i.e. Rs. 20).