Hello,

I am not seeing StopPrice updated when stop orders are updated.

My algo is iterating through open orders (for order in Open_orders) then calling a function to recalculate and update the stops. I want to view the updated stop price based on the order but Get(orderField.StopPrice) returns the original stop.

I coded a work around to pass additional data between functions, but this is a sub-optimal solution since that data was not required by the function, but only there to get around not being able to get the correct stop price.

market_order = self.MarketOrder(security, 100)
stop_order_ticket   = self.StopMarketOrder(security, -100, 10.00)
stop_price = stop_order_ticket.Get(OrderField.StopPrice)
               
# Update stop
update_stop = UpdateOrderFields() 
update_stop.StopPrice = 20.00
updated_stop_order_ticket = stop_order_ticket.Update(update_stop)   # Works: order updated with new stop
updated_stop_price = stop_order_ticket.Get(OrderField.StopPrice)    # New stop price not returned

I find it confusing that creating an order and updating an order return different data types.

The documentation on this was not sufficiently clear to me. The docs pages described "how to" do certain things, but I would also request a separate reference laying out by function (in this case orders), which helpers / classes exist, and inputs, methods and results for these.

Thanks…M.