Hi there,
Is there a way to access the execution price of an order placed through the Zipline library, specifically when a position is fully existed? There are properties of the Order object that contain the amount of shares ordered and the amount filled, but the execution price is not offered.
When a position is opened, the execution price can be inferred from the cost_basis property of the Position object.
When a position is partially closed, the execution price can be inferred using the last_sale_price property of the same Position object.
However, when a position is entirely closed, the Position object appears to return None (I assume because the position is no longer active), and so the last_sale_price cannot be accessed.
Thanks in advance,
Paul.