Getting Error - stopPrice does not match: 0

I want to implement a trailing stop loss and trying to modify the stoploss leg order of a cover order. I am getting this error - {'code': -50, 'message': 'stopPrice does not match: 0', 's': 'error', 'id': '2412050054-CO-2'} - I am passing these values data = { "id":coverorderid, "type":1, "limitPrice": 490.0, "stopPrice":498.0, "qty":2 } to modify_order_response = fyers.modify_order(data=data)

1 reply