# Adding Position entry date/time to class

**URL:** <https://forum.alpaca.markets/t/adding-position-entry-date-time-to-class/15591>\
**Category:** Alpaca Integration Applications\
**Created:** [December 12, 2024, 5:39pm UTC](https://forum.alpaca.markets/t/adding-position-entry-date-time-to-class/15591 "2024-12-12T17:39:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agram20](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/agram20/32/6768_2.png) [@agram20](https://forum.alpaca.markets/u/agram20)\
**Post date:** [December 12, 2024, 5:39pm UTC](https://forum.alpaca.markets/t/adding-position-entry-date-time-to-class/15591/1 "2024-12-12T17:39:31Z")

</div>

Good Morning,

In a reboot situation for my application, if I have open positions I need to get their current information to put back into the system in a relevant state.

Currently using trading.get\_all\_positions() and working my way through there, but the Position class doesn’t have an attirbute for when the position was opened. I need this to calculate the amount of margin accrued among other things.

Is there another method I’m missing that I should be using or could this be added to the Position model?

Thanks!
