


class Event(object):
    pass

class TickEvent(Event):
    def __init__(self, instrument, time, bid, ask):
        self.type = 'TICK'
        self.instrument = instrument
        self.time = time
        self.bid = bid
        self.ask = ask

    def __str__(self):
        return "{}, {}, {}, {}".format( self.instrument, self.time, self.bid, self.ask )

class OrderEvent(Event):
    def __init__(self, instrument, units, order_type, side):
        self.type='ORDER'
        self.instrument=instrument
        self.units = units
        self.order_type = order_type
        self.side = side

    def __str__(self):
        return "{}, {}, {}, {}".format( self.instrument, self.units, self.order_type, self.side )

