I am trying to modify an exiting Stop Loss order using API by the below method
fyers.update_orders(
token=token,
data={
"id": orderid,
"type": "3",
"limitPrice": 0,
"stopLoss": slprice
}
)
The response I am getting is below .
{'code': 400, 'data': [], 'message': 'Nothing to Modify'}
on the above call orderid is the order id of existing SL order and slprice is the new modified SL price
The SL order is not getting modified to the new SL price . Can anyone please help me what is going wrong here