I am trying to check if there is an open order for a security before the order is placed.
I seem to be able to get the security from context.security.symbol but having issues comparing it to open_orders.
open_orders = get_open_orders()
if open_orders.symbol== context.security
#ignore order