Order Update for bracket order

I want to update the stop loss offset on a bracket order.
the docs say https://live.ironbeamapi.com/v2/order/{accountId}/update/{orderId}
do I use the orderId of the parent, or the sloffset child?

Hey @Soup

You would use the orderId of the child.

Mike Murphy
[email protected]

“Using the REST API, how do I modify the stopLossOffset of a bracket order that is in NEW/PENDING_NEW state (entry limit not yet filled)? The PUT to /order/{accountId}/update/{parentOrderId} with stopLossOffset returns 200 but cancels the child legs. What is the correct request?”

I am still having problems with the order update. specifically bracket orders. I want to update the stopLimitOffset. When I use the chart widget and drag the stop, the stoplimitoffset is updated in the order book and the orderIds remain unchanged (meanig order update is being used by chart widget). If I try to change the stop child, the server tells me that is not an active order. If i try to change the parent bracket order, it executes the order (even if the limit is not reached). both the stopLimit and the take profits dissappear leaving and orphaned position. Can someone help?