class Event(object):
    @property
    def typename(self):
        return self.type

class OfferEvent(Event):
    def __init__(self, fxoffer):
        self.type = 'OFFER'
        self.fxoffer = fxoffer

    def __str__(self):
        return "Type: %s, Atrr: %s" % (
            str(self.type), str(self.fxoffer)
        )

    def __repr__(self):
        return str(self)

class DBReadyEvent(Event):
    def __init__(self, fxoffer):
        self.type = 'DBREADY'
        self.fxoffer = fxoffer

    def __str__(self):
        return "Type: %s, Atrr: %s" % (
            str(self.type), str(self.fxoffer)
        )

    def __repr__(self):
        return str(self)

class HistDataEvent(Event):
    def __init__(self, data, instrument, time_frame):
        self.type = 'HISTDATA'
        self.data = data
        self.instrument = instrument
        self.time_frame = time_frame

    def __str__(self):
        return "Type: %s, Data: %s, Instrument : %s, Time Frame : %s" % (
            str(self.type), str(self.data), str(self.instrument), str(self.time_frame)
        )

    def __repr__(self):
        return str(self)

class LiveReadyEvent(Event):
    def __init__(self, offer):
        self.type = 'GETLIVE'
        self.offer = offer

    def __str__(self):
        return "Type: %s, Atrr: %s" % (
            str(self.type), str(self.offer)
        )

    def __repr__(self):
        return str(self)

class LiveDataEvent(Event):
    def __init__(self, data, instrument, time_frame):
        self.type = 'LIVEDATA'
        self.data = data
        self.instrument = instrument
        self.time_frame = time_frame

    def __str__(self):
        return "Type: %s, Data: %s, Instrument : %s, Time Frame : %s" % (
            str(self.type), str(self.data), str(self.instrument), str(self.time_frame)
        )

    def __repr__(self):
        return str(self)

@@ -1,12 +1,29 @@
+import logging%0A%0A%0A
 class Event(
@@ -1218,15 +1218,17 @@
  = '
-GET
 LIVE
+READY
 '%0A  
@@ -1308,32 +1308,32 @@
 , Atrr: %25s%22 %25 (%0A
-
             str(
@@ -1413,32 +1413,336 @@
 turn str(self)%0A%0A
+class GetLiveEvent(Event):%0A    def __init__(self, time_frame):%0A        self.type = 'GETLIVE'%0A        self.time_frame = time_frame%0A%0A    def __str__(self):%0A        return %22Type: %25s, Atrr: %25s%22 %25 (%0A            str(self.type), str(self.time_frame)%0A        )%0A%0A    def __repr__(self):%0A        return str(self)%0A%0A
 class LiveDataEv

Update event.py