class_docstr: This policy cancels open orders at the end of the day.  For now,
  Zipline will only apply this policy to minutely simulations.
  
  Parameters
  ----------
  warn_on_cancel : bool, optional
      Should a warning be raised if this causes an order to be cancelled?
code: def __init__(self, warn_on_cancel=True):
      self.warn_on_cancel = warn_on_cancel
  
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 to create a new EODCancel object from inherited base classes: CancelPolicy with example: obj = EODCancel(warn_on_cancel)