I am not able to change the order from OrderType from LIMIT to STOP_LOSS or the other way round too. when I created an STOP_LOSS order and tried changing to LIMIT order I get this strange order of “Price should be greater than trigger price”
I tried adjusting the trigger price too, for some reason it still shows the same error
this i very bad Hardik, this is very basic requirement and you are forcing to cancel and create a new order, Almost all the broker API’s have this feature and just for Dhan needing to implement a special case does not go well on Dhan’s case for Algo integration.
Taking this as a feedback, that will try to incorporate. I am not sure how other platform APIs take this, but we will definitely try to allow this in modification.
@Hardik Came here looking for the same, this is very critical feature as cancelling order order and placing it again causes a delay as well as needless complexity in code as well.
as i see it it is possible using Dhan app, on modifying order, order number remains the same, why we cant do the same thing here.
other brokers apis also remains the same.
changing order type is very important for scalping in options, please implement it