Hi, on the latest Python SDK. This was purchased on the 23rd and looks correct through the web interface… I’m getting the same response for all equities purchased. This is for my paper account, I suspect live is showing the same (I haven’t been able to look yet but it seems like the reason for my 4-day max not working)
start_date: 2020-04-26 00:00:00-04:100 < Clearly wrong, a Sunday
I am a bit confused as your first line says Python SDK but
context.portfolio.positions sounds like you are asking about
pylivetrader. If the latter, can you try
list_positions() of the REST method and see if it still shows something unexpected?
Sorry, yes, through pylivetrader. I was assuming that the portfolio.positions call is a proxy to/through the Alpaca API. I will give that a try tomorrow.
Here’s what I get. I don’t see a purchase date associated with it:
Are multiple purchases at different dates lumped into a single position? That could get tricky if you’re trying to avoid PDT (which is what I’m trying to do)
Yes, this is a conslidated level of position at the symbol level. We have backlog item to expose lower level position for each transaction.
Any news about when the purchase date will be added to the position details ?. I’d like to use it to avoid PDT.