Modify a TakeProfit #201
-
I've been playing with the code, in a very basic test python script, however I'm struggling to modify the takeprofit on an existing position? Do you have to replace the existing order? In which case is the new order automatically linked as a take profit? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Since you didn't show any code I assume that you used https://oanda-api-v20.readthedocs.io/en/latest/contrib/support/takeprofitdetails.html to get a position (this example a MarketOrder with a TP). See also: https://oanda-api-v20.readthedocs.io/en/latest/endpoints/orders/orderreplace.html |
Beta Was this translation helpful? Give feedback.
-
Thanks, I didn't include because at that point I didn't have have any :-) However I've been playing, and for the benefit of others, Ive got as far as :-
|
Beta Was this translation helpful? Give feedback.
Thanks, I didn't include because at that point I didn't have have any :-)
However I've been playing, and for the benefit of others, Ive got as far as :-