I'd like to retrieve the fill price when I place an order using SetHoldings(). However, the code below doesn't seem to accurately return the fill price. Any examples demonstrating this would be greatly appreciated.

 

# Get the current price of the asset

current_price = self.Securities[self.symbol].Price


# Place an order to set holdings to 100%

self.SetHoldings(self.symbol, 1)


# Calculate the fill price

fill_price = current_price


# Print the fill price

self.Debug("Fill Price: {}".format(fill_price))