API for historical positions

Hello,

I would like to look at historical positions in my account and cannot seem to find a way to do so with the existing endpoints.

list_positions returns a list of current positions with avg entry prices. As it only provides current positions, there is no history of past trades.

list_orders returns orders with filled avg prices but there is no distinction between position entry and exit within the orders that I can see.

Could an endpoint be added to access historical positions? Or is there a workaround for this with current endpoints?

Thanks!