# Take\_profit.limit\_price must be \<= base\_price - 0.01

**URL:** <https://forum.alpaca.markets/t/take-profit-limit-price-must-be-base-price-0-01/13049>\
**Category:** Getting Started with Alpaca\
**Created:** [October 25, 2023, 2:52pm UTC](https://forum.alpaca.markets/t/take-profit-limit-price-must-be-base-price-0-01/13049 "2023-10-25T14:52:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giuseppe\_Mammoliti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/giuseppe_mammoliti/32/5601_2.png) [@Giuseppe\_Mammoliti](https://forum.alpaca.markets/u/Giuseppe_Mammoliti)\
**Post date:** [October 25, 2023, 2:52pm UTC](https://forum.alpaca.markets/t/take-profit-limit-price-must-be-base-price-0-01/13049/1 "2023-10-25T14:52:18Z")

</div>

Hi!

I’m trying to configure a new algo trading strategies but i received this error: “take\_profit.limit\_price must be \<= base\_price - 0.01”. I thought that i solved this error selling below the BID price and buying above the ASK price but it give me the error sometimes the same, so, what is the base\_price?

---

<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:** [October 25, 2023, 5:03pm UTC](https://forum.alpaca.markets/t/take-profit-limit-price-must-be-base-price-0-01/13049/2 "2023-10-25T17:03:28Z")

</div>

@Giuseppe_Mammoliti The `base_price` is the fill price of the original parent order. However, when an order is submitted (but not yet executed), it isn’t known what that fill price will be. Therefore, the `base_price` is really the “expected fill price”. If the parent order was a limit order, that price is the limit price (ie it’s assumed it will fill at the limit). If the parent order is a market order, that price is the current ask (for a buy order) or the current bid (for a sell order). Market orders typically fill at the current quote.

For a bracket order (which I assume this is) the take profit order is a limit order. That limit price must be ‘better’ than the base\_price (otherwise it wouldn’t be taking a profit). For a long position this means the limit must be _greater_ than the base\_price (ie one makes a profit when the price goes _up_). For a short position this means the limit must be _less_ than the base\_price (ie one makes a profit when the price goes _down_).

Now, since the error was `take_profit.limit_price must be <= base_price - 0.01` (notice ‘less than’), the parent order must have been a sell order. The take profit limit price therefore must be less than the base price which is either 1) the parent order limit price if it’s a limit order or 2) the current bid if it’s a market order.

If you are checking the current bid and ensuring your take profit limit is less than that, the issue may be with the quote data you are fetching. The system uses the full market SIP data for the latest quote check. If one only is subscribed to the free Market Data plan that will only be IEX data which is a subset of the full market data. Quotes received from the free plan are not necessarily accurate full market quotes. Could that be the issue?

---

<div class="post-metadata">

**Author:** ![Giuseppe\_Mammoliti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/giuseppe_mammoliti/32/5601_2.png) [@Giuseppe\_Mammoliti](https://forum.alpaca.markets/u/Giuseppe_Mammoliti)\
**Post date:** [October 27, 2023, 9:39am UTC](https://forum.alpaca.markets/t/take-profit-limit-price-must-be-base-price-0-01/13049/3 "2023-10-27T09:39:09Z")

</div>

Thank you for your accurate response @Dan_Whitnable_Alpaca.

Best Regards,  
Giuseppe.
