'Cancel an open order.
Parameters
order_param : str or Order
The order_id or order object to cancel.'

@api_method
def cancel_order(self, order_param):

    order_id = order_param
    if isinstance(order_param, zipline.protocol.Order):
        order_id = order_param.id
    self.blotter.cancel(order_id)
