def get_ratetimestamp(self, base, code):
        """Return rate timestamp as a datetime/date or None"""
        try:
            ts = int(self.get_rate(code)['ts'])
        except RuntimeError:
            return None
        return datetime.fromtimestamp(ts)