def rotate_minute_store(self):
        date = datetime.datetime.fromtimestamp(self.mtime).date()
        if self._minutestore and date != self._minutestore.date:
            logging.info("==> Ratate minute store...")
            # _minutestore was always stored in cache,
            # we need to rewrite it to Minute store for persistent.
            tostore = self._minutestore_at(self._minutestore.date, memory=False)
            self._minutestore.store.rotate(tostore)
            self._minutestore = None

        return self.minutestore
Rotate minute store when new trading day data flowed in.
dataset/ETHPy150Open yinhm/datafeed/datafeed/datastore.py/Manager.rotate_minute_store