code: 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)
docs: Cancel an open order.
  
          Parameters
          ----------
          order_param : str or Order
              The order_id or order object to cancel.