I am trying to determine how many days a position has been open in a trade.
When listing the positions by api.list_positions() that have been filled in the portfolio, the Position entity does not have a date to which indicates when the position or record was created and last updated.
How can I determine when that position was originally opened that corresponds back to it’s original order? The Position entity has an “asset_id”, but does that Position entity “asset_id” map back to the Order “asset_id”?
— Update —
Looking further, there seems to be Account Activities - TradeActivity Entity that contains a transaction time with the order_id. I take this is probably what I am looking for?
Thank you,
LF