I already placed bracket order with stop loss, Order got triggered & stop loss of bracket order also got created, Now I want to change the price of the stop loss of bracket order using below API & payload, but it is not working.
Looking at the PUT /orders/bracket endpoint specification:
The id field is described as: “Order ID for which bracket params are being updated”
This endpoint is designed to update bracket parameters that are still attached to an open (unfilled) entry order — i.e., before that order fills and creates a position.
In your case:
You placed a bracket order (entry order + attached SL/TP params)
The entry order got triggered/filled → its state changed from open to closed
Once filled, a separate stop-loss order was created against your position (not against the original entry order)
Since the entry order (id: 1498739180) is no longer in an open state (it’s closed because it already filled), the API cannot find an “open order” with that ID to attach the updated bracket params to — hence open_order_not_found.
How to fix it
Since your position is already open and the stop-loss order is already resting on the order book, you should modify the stop-loss order itself using the standard Edit Order endpoint, not /orders/bracket.
Fetch your open orders (GET /orders?product_id=26457&state=open) to find the order ID of the actual stop-loss order (this will be a different ID than 1498739180, which was your original entry order).
Use that stop-loss order’s ID in the edit payload with the new stop_price.
Example curl (illustrative only, replace with the correct stop-loss order ID you fetch):