def calendar(self, start_time=None, end_time=None, freq='day', future=False):
    self.conn.send_request(request_type='calendar', request_content={'start_time': str(start_time), 'end_time': str(end_time), 'freq': freq, 'future': future}, msg_queue=self.queue, msg_proc_func=(lambda response_content: [pd.Timestamp(c) for c in response_content]))
    result = self.queue.get(timeout=C['timeout'])
    return result
def calendar(self, start_time=None, end_time=None, freq='day', future=False):
    self.conn.send_request(request_type='calendar', request_content={'start_time': str(start_time), 'end_time': str(end_time), 'freq': freq, 'future': future}, msg_queue=self.queue, msg_proc_func=(lambda response_content: [pd.Timestamp(c) for c in response_content]))
    result = self.queue.get(timeout=C['timeout'])
    return result