# Take Profit and Stop Loss

**URL:** <https://forum.alpaca.markets/t/take-profit-and-stop-loss/12696>\
**Category:** Getting Started with Alpaca\
**Created:** [July 25, 2023, 6:31pm UTC](https://forum.alpaca.markets/t/take-profit-and-stop-loss/12696 "2023-07-25T18:31:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoodini](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hoodini](https://forum.alpaca.markets/u/hoodini)\
**Post date:** [July 25, 2023, 6:31pm UTC](https://forum.alpaca.markets/t/take-profit-and-stop-loss/12696/1 "2023-07-25T18:31:05Z")

</div>

Does anyone know how to structure the request body to set a Take Profit and Stop Loss?

Right now, I’m doing something like this:

```auto
        await alpaca.createOrder({
          symbol: 'SPY',
          qty: 10,
          side: "sell",
          type: "market",
          time_in_force: "day",
          take_profit: {
            limit_price: takeProfit
          },
          stop_loss: {
            stop_price: stopLoss
          }
        });

```

but I don’t see the take profit and stop loss values shown in the Alpaca dashboard

---

<div class="post-metadata">

**Author:** ![AlpacaUser10](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@AlpacaUser10](https://forum.alpaca.markets/u/AlpacaUser10)\
**Post date:** [February 24, 2025, 7:38pm UTC](https://forum.alpaca.markets/t/take-profit-and-stop-loss/12696/2 "2025-02-24T19:38:11Z")

</div>

alpaca\_client.place\_order(  
symbol=symbol,  
qty=position\_size,  
side=“buy”  
order\_type=“market”,  
time\_in\_force=“gtc”, # alternatively can be “day”  
order\_class=“bracket”,  
take\_profit={“limit\_price”: round(take\_profit\_price, 2)},  
stop\_loss={“stop\_price”: round(stop\_loss\_price, 2)}  
)
