Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Price of filled order when using LimitOrder

Greetings everyone!
I am new to Quantopian, so I apologize if this has been covered already, but I did not see an answer on the forums.

So, let's say I place an order for Google stock using a price limit.
My understanding of LimitOrder is that there is a possability that it could be purchased for a better price than the limit that I specify.
Is there a way for me to get the price that order was filled at per share?

Something like:

context.order_id = order(context.Google, 1, style=LimitOrder(context.buy_price))  
g_order = get_order(context.order_id)  
if g_order.filled == 1:  
    print(g_order.price)  

Thank you ahead of time for all of your help!