def __init__(self, start, stop, timeframe='day'):
    self.timeframe = timeframe
    self.start = start.floor(self.timeframe)
    self.stop = stop.ceil(self.timeframe)
def __init__(self, start, stop, timeframe='day'):
    self.timeframe = timeframe
    self.start = start.floor(self.timeframe)
    self.stop = stop.ceil(self.timeframe)