# Replace limit sell order with market sell order

**URL:** <https://forum.alpaca.markets/t/replace-limit-sell-order-with-market-sell-order/14458>\
**Category:** Alpaca Trading\
**Created:** [June 14, 2024, 7:21pm UTC](https://forum.alpaca.markets/t/replace-limit-sell-order-with-market-sell-order/14458 "2024-06-14T19:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsood](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@hsood](https://forum.alpaca.markets/u/hsood)\
**Post date:** [June 14, 2024, 7:21pm UTC](https://forum.alpaca.markets/t/replace-limit-sell-order-with-market-sell-order/14458/1 "2024-06-14T19:21:21Z")

</div>

I have a Python script that I’m testing in a paper trading account and am having issues implementing part of the sell strategy. Basically, I’m trying to replace existing limit sell orders with a market sell order. How can I implement this? Thanks!

Canceling the limit order and creating a new market sell order does not work due to the delay in canceling the existing limit order. Also, I wasn’t able to find anything in the documentation or the forum to help with this issue.

---

<div class="post-metadata">

**Author:** ![Dan\_Whitnable\_Alpaca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dan_whitnable_alpaca/32/1658_2.png) [@Dan\_Whitnable\_Alpaca](https://forum.alpaca.markets/u/Dan_Whitnable_Alpaca)\
**Post date:** [June 14, 2024, 8:13pm UTC](https://forum.alpaca.markets/t/replace-limit-sell-order-with-market-sell-order/14458/2 "2024-06-14T20:13:46Z")

</div>

@hsood If you want to turn a limit order into a market order simply replace the limit price with a ‘marketable’ price. It will then be submitted as a market order (with the added benefit of a limit price).

Set the limit price to less than the current bid for a sell order or greater than the current ask for a buy order. You can be rather generous with how much above or below the quote you set the limit at. I usually set it at 1%. It’s just a backstop. The order will fill like a market order at the current quote.

---

<div class="post-metadata">

**Author:** ![hsood](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@hsood](https://forum.alpaca.markets/u/hsood)\
**Post date:** [June 17, 2024, 6:41am UTC](https://forum.alpaca.markets/t/replace-limit-sell-order-with-market-sell-order/14458/3 "2024-06-17T06:41:16Z")

</div>

Thanks for the suggestion! I was considering doing that but wasn’t sure if it was the best way.
