How to modify stop loss and/or take profit on already live order?

Hello, I can’t seem to understand how to modify the stop loss or change the take profit price in an already active order via the API. Also, any idea when you will have sample python templates?

Thank you

You can use the order/modifyOrder endpoint, docs here.

As for python templates, we currently do not have a timeline for them, but I do know that some other community members are using python, so you may still get help here.

thank you, so this endpoint will modify orders that have already been executed as well?

Yes, you could for example use the dependent orders in a brackets strategy and modify where they take profit or stop loss based on incoming data.