# Patching a leg of OTO order not working

**URL:** <https://forum.alpaca.markets/t/patching-a-leg-of-oto-order-not-working/1252>\
**Category:** Alpaca Integration Applications\
**Created:** [April 22, 2020, 5:52am UTC](https://forum.alpaca.markets/t/patching-a-leg-of-oto-order-not-working/1252 "2020-04-22T05:52:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![harsh\_upreti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/harsh_upreti/32/290_2.png) [@harsh\_upreti](https://forum.alpaca.markets/u/harsh_upreti)\
**Post date:** [April 22, 2020, 5:52am UTC](https://forum.alpaca.markets/t/patching-a-leg-of-oto-order-not-working/1252/1 "2020-04-22T05:52:19Z")

</div>

I am placing an OTO order with one Buy leg and a stopLoss leg. The buy leg executes immediately and the stoploss order is open.

Now next day my strategy is trying to update (PATCH) the stoploss (which is still open) order with a new price but I get this error:

“only simple orders can be replaced at this time”

If the stoploss leg is open, why can’t I update it with a fresh price?

---

<div class="post-metadata">

**Author:** ![Casey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/casey/32/546_2.png) [@Casey](https://forum.alpaca.markets/u/Casey)\
**Post date:** [April 22, 2020, 6:18pm UTC](https://forum.alpaca.markets/t/patching-a-leg-of-oto-order-not-working/1252/2 "2020-04-22T18:18:36Z")

</div>

I guess it’s because:

> [@harsh\_upreti](#):
>
> “only simple orders can be replaced at this time”

But I agree, this is a significant pain point for me and I hope it is on the roadmap to be addressed soon…

---

<div class="post-metadata">

**Author:** ![harsh\_upreti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/harsh_upreti/32/290_2.png) [@harsh\_upreti](https://forum.alpaca.markets/u/harsh_upreti)\
**Post date:** [April 23, 2020, 3:57pm UTC](https://forum.alpaca.markets/t/patching-a-leg-of-oto-order-not-working/1252/3 "2020-04-23T15:57:30Z")

</div>

Its frustrating, one step forward and then a wait of X months and then next. 🙂

Regardless I will just implement this scenario for now with simple orders.
