# Can't place trailing stop loss order

**URL:** <https://forum.alpaca.markets/t/cant-place-trailing-stop-loss-order/4926>\
**Category:** Alpaca Trading\
**Created:** [March 12, 2021, 3:46pm UTC](https://forum.alpaca.markets/t/cant-place-trailing-stop-loss-order/4926 "2021-03-12T15:46:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anarchy](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Anarchy](https://forum.alpaca.markets/u/Anarchy)\
**Post date:** [March 12, 2021, 3:46pm UTC](https://forum.alpaca.markets/t/cant-place-trailing-stop-loss-order/4926/1 "2021-03-12T15:46:30Z")

</div>

I have been trying to place trailing stop loss orders but I cant seem to do it. I can place other orders just fine, buy sell, stop loss.

Here is my code

api.submit\_order(  
symbol=‘AAPL’,  
qty=1,  
side=‘sell’,  
type=‘trailing\_stop’,  
trail\_percent=0.05,  
time\_in\_force=‘gtc’,  
)

and here is my error,

* * *

TypeError Traceback (most recent call last)  
 in   
----\> 1 api.submit\_order(  
2 symbol=‘AAPL’,  
3 qty=1,  
4 side=‘sell’,  
5 type=‘trailing\_stop’,

TypeError: submit\_order() got an unexpected keyword argument ‘trail\_percent’

Whats wrong with my code? It’s taking from the alpaca api docs.

---

<div class="post-metadata">

**Author:** ![babayking](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@babayking](https://forum.alpaca.markets/u/babayking)\
**Post date:** [March 13, 2021, 1:23am UTC](https://forum.alpaca.markets/t/cant-place-trailing-stop-loss-order/4926/2 "2021-03-13T01:23:39Z")

</div>

trail percent needs to be string
