<s> from datetime import datetime <EOL> from datafeed . exchange import Security <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> class _Struct ( object ) : <EOL> def __init__ ( self , security , adict ) : <EOL> assert isinstance ( security , Security ) <EOL> self . __dict__ . update ( adict ) <EOL> self . security = security <EOL> def assert_data ( self ) : <EOL> pass <EOL> def __getstate__ ( self ) : <EOL> odict = self . __dict__ . copy ( ) <EOL> odict . pop ( '<STR_LIT>' , None ) <EOL> return odict <EOL> def __setstate__ ( self , state ) : <EOL> self . __dict__ . update ( state ) <EOL> def todict ( self ) : <EOL> return self . __getstate__ ( ) <EOL> class Report ( _Struct ) : <EOL> def __init__ ( self , security , adict ) : <EOL> assert isinstance ( adict [ '<STR_LIT>' ] , float ) <EOL> assert isinstance ( adict [ '<STR_LIT:time>' ] , datetime ) <EOL> super ( Report , self ) . __init__ ( security , adict ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . security , self . price , self . time ) <EOL> class Day ( _Struct ) : <EOL> pass <EOL> class Minute ( _Struct ) : <EOL> pass <EOL> class SecurityList ( _Struct ) : <EOL> pass </s>
