Trying to do a little debugging and having trouble with the "Order", "Equity" object model.
initially I thought get_open_orders() would return a list or dictionary of open orders as the documentation says
get_open_orders(security)
If security is None or not specified, returns all open orders. If security is specified, returns open orders for that security
but when I use:
open_orders = get_open_orders()
for ORDER in open_orders
.
.
.
ORDER does not have any of the properties of an "Order" object. In the debugger ORDER is reported as an "Equity" object
and strangely, open_orders is reported in the debugger to be a dictionary of Equity objects. But when I drill into one of the "Equity" objects in the debugger the only propery that shows up is an "Order" object.
I'm SO confused.
Could someone show me a code snippet that iterates through all open orders and displays the Symbol name AND all of the other order information?
Thanks
Shawn