Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Trying to understand the order object.

Hello,
I have a strategy wherein i place an order and i need to keep on polling the order status every minute till the order executes. I used get_order() to check whether the order is executed or not. The order object i got in return to get_order() looks like this.

({'status': 1, 'limit_reached': False, 'created': Timestamp('2011-08-09 00:00:00+0000', tz='UTC'), 'stop': None, 'reason': None, 'stop_reached': False, 'commission': 270.0, 'amount': 9000, 'limit': None, 'sid': Security(8554, symbol='SPY', security_name='SPDR S&P 500 ETF TRUST', exchange='NYSE ARCA EXCHANGE', start_date=Timestamp('1993-01-29 00:00:00+0000', tz='UTC'), end_date=Timestamp('2015-05-04 00:00:00+0000', tz='UTC'), first_traded=None), 'id': '5b96dd265a62438eb2d00e48b282b4f7', 'dt': Timestamp('2011-08-10 00:00:00+0000', tz='UTC'), 'filled': 9000})

I just want to understand this object. What and all are the possible values for 'status'? only 0 or 1? or some other values? and how can i get order executed price?

Thanks