You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I need to be able to re-boot my application at times and if I have open positions need to bring them back to a relevant state. trading.get_all_positions() provides most of the information I need, but in order to calculate a positions p/l I need to know how long it has been opened i.e. margin fees
Describe the solution you'd like.
add trading.models.Position.filled_at attribute so that I can determine when a position was opened
Describe an alternate solution.
No response
Anything else? (Additional Context)
Thanks!
The text was updated successfully, but these errors were encountered:
@agram20 Thank you for the request. At a glance, Alpaca Trading API currently returns aggregated positions from the positions endpoints. Therefore, to construct those information, it might be required gathering info from list of orders (filling date and qty) or account activity (not implemented in alpaca-py yet #232).
Might be cool if the position objects maintained a sort of memory of their lifecycle i.e. if part of a position was removed or added to at some point, not like you don't have enough other things going on :) Thanks for the direction!
Is there an existing issue for this?
Is your feature request related to a problem? Please describe.
I need to be able to re-boot my application at times and if I have open positions need to bring them back to a relevant state. trading.get_all_positions() provides most of the information I need, but in order to calculate a positions p/l I need to know how long it has been opened i.e. margin fees
Describe the solution you'd like.
add trading.models.Position.filled_at attribute so that I can determine when a position was opened
Describe an alternate solution.
No response
Anything else? (Additional Context)
Thanks!
The text was updated successfully, but these errors were encountered: