Why I can't modify an SL-L order?

I have an open position already. I have separately added an SL order (type=4) for the same symbol where LTP is 10, but when I try to modify it, I get the following error.

Code:

data = {'id': '23053000172563', 'stopPrice': 3.0, 'limitPrice': 2.5}

response = fyersModelObject.modify_order(data=data)

Error:

{'s': 'error', 'code': -50, 'message': 'stopPrice: Must be less than or equal to 0', 'id': '23053000172563'}

3 replies