# Trailing Stop Orders / Position PNL vars?

**URL:** <https://forum.alpaca.markets/t/trailing-stop-orders-position-pnl-vars/1459>\
**Category:** Alpaca Integration Applications\
**Created:** [May 15, 2020, 8:11pm UTC](https://forum.alpaca.markets/t/trailing-stop-orders-position-pnl-vars/1459 "2020-05-15T20:11:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zach\_Oakes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/zach_oakes/32/482_2.png) [@Zach\_Oakes](https://forum.alpaca.markets/u/Zach_Oakes)\
**Post date:** [May 15, 2020, 8:11pm UTC](https://forum.alpaca.markets/t/trailing-stop-orders-position-pnl-vars/1459/1 "2020-05-15T20:11:33Z")

</div>

Do you guys have any idea when this will be added to functionality – (It mentions ‘soon’ in documentation). I was also considering adding my own, but can’t find any variables about PNL in the list\_positions() or anything like that? I do see a unrealized\_pl, but don’t understand these endpoint things – how can I pull unrealized\_pl from Python --\> is it just:  
portfolio = api.list\_positions()  
for pos in portfolio:  
pct\_pnl = pos.unrealized\_plpc  
usd\_pnl = pos.unrealized\_pl

?

---

<div class="post-metadata">

**Author:** ![hitoshi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/hitoshi/32/69_2.png) [@hitoshi](https://forum.alpaca.markets/u/hitoshi)\
**Post date:** [May 19, 2020, 7:07pm UTC](https://forum.alpaca.markets/t/trailing-stop-orders-position-pnl-vars/1459/2 "2020-05-19T19:07:44Z")

</div>

Yes those fields are the P/L. Let us know what doesn’t make sense and we can maybe improve our documentation.

---

<div class="post-metadata">

**Author:** ![Zach\_Oakes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/zach_oakes/32/482_2.png) [@Zach\_Oakes](https://forum.alpaca.markets/u/Zach_Oakes)\
**Post date:** [May 19, 2020, 8:30pm UTC](https://forum.alpaca.markets/t/trailing-stop-orders-position-pnl-vars/1459/3 "2020-05-19T20:30:52Z")

</div>

It was straightforward when I found the account / position objects — one thing that is very confusing for me personally is the dict() items in the stop loss or profit target arguments in orders ? Like — no idea what that’s referencing or if it’s just some strange rule.
