class_docstr: Abstract cancellation policy interface.
      
docstr: Should all open orders be cancelled?
  
  Parameters
  ----------
  event : enum-value
      An event type, one of:
        - :data:`zipline.gens.sim_engine.BAR`
        - :data:`zipline.gens.sim_engine.DAY_START`
        - :data:`zipline.gens.sim_engine.DAY_END`
        - :data:`zipline.gens.sim_engine.MINUTE_END`
  
  Returns
  -------
  should_cancel : bool
      Should all open orders be cancelled?
docstr_tok: ["Should","all","open","orders","be","cancelled","?","Parameters","--","--","--","--","--","event",":","enum-value","An","event","type",",","one","of",":","-",":","data",":","`","zipline.gens.sim_engine.BAR","`","-",":","data",":","`","zipline.gens.sim_engine.DAY_START","`","-",":","data",":","`","zipline.gens.sim_engine.DAY_END","`","-",":","data",":","`","zipline.gens.sim_engine.MINUTE_END","`","Returns","--","--","--","-","should_cancel",":","bool","Should","all","open","orders","be","cancelled","?"]
code: def should_cancel(self, event):
      """Should all open orders be cancelled?
  
      Parameters
      ----------
      event : enum-value
          An event type, one of:
            - :data:`zipline.gens.sim_engine.BAR`
            - :data:`zipline.gens.sim_engine.DAY_START`
            - :data:`zipline.gens.sim_engine.DAY_END`
            - :data:`zipline.gens.sim_engine.MINUTE_END`
  
      Returns
      -------
      should_cancel : bool
          Should all open orders be cancelled?
      """
      pass
  
file_path: zipline/zipline/finance/cancel_policy.py
imports: import abc
  from abc import abstractmethod
  from six import with_metaclass
  from zipline.gens.sim_engine import SESSION_END
label_desc: Use image node_id 1 for calling the CancelPolicy obj's underlying member method code with example usage: obj.should_cancel(event) without return types