# Placing order with Stop Loss

**URL:** <https://forum.alpaca.markets/t/placing-order-with-stop-loss/6521>\
**Category:** Alpaca Trading\
**Created:** [August 11, 2021, 2:40pm UTC](https://forum.alpaca.markets/t/placing-order-with-stop-loss/6521 "2021-08-11T14:40:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Callum\_Taylor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/callum_taylor/32/2476_2.png) [@Callum\_Taylor](https://forum.alpaca.markets/u/Callum_Taylor)\
**Post date:** [August 11, 2021, 2:40pm UTC](https://forum.alpaca.markets/t/placing-order-with-stop-loss/6521/1 "2021-08-11T14:40:18Z")

</div>

I am having trouble placing an order that has a stop loss and take profit. The order is being created but the SL or TP doesn’t get triggered when the price shifts out of one of their ranges.  
Here is the code I am using the set up an order (Python Requests)

```auto
data ={
        "symbol": symbol,
        "notional": notional,
        "side": side,
        "type": type,
        "time_in_force": time_in_force,
        "take_profit": {
            "limit_price": take_profit
        },
        "stop_loss": {
            "stop_price": stop_loss
        }
    }
    r = requests.post(ORDERS_URL, json=data, headers=HEADERS)

```

I have passed the TP and SL as both strings and number values, either way the order is still processed but without the TP/SL values. Is there something I am missing?
