code: def caldata(self, time):
          ''' Market open or not.
  
              :param datetime time: 欲判斷的日期
              :rtype: bool
              :returns: True 為開市、False 為休市
          '''
          if time.date() in self.__ocdate['close']:  # 判對是否為法定休市
              return False
          elif time.date() in self.__ocdate['open']:  # 判對是否為法定開市
              return True
          else:
              if time.weekday() <= 4:  # 判斷是否為平常日開市
                  return True
              else:
                  return Falsf caldata(self, time):
          ''' Market open or not.
  
              :param datetime time: 欲判斷的日期
              :rtype: bool
              :returns: True 為開市、False 為休市
          '''
          if time.date() in self.__ocdate['close']:  # 判對是否為法定休市
              return False
          elif time.date() in self.__ocdate['open']:  # 判對是否為法定開市
              return True
          else:
              if time.weekday() <= 4:  # 判斷是否為平常日開市
                  return True
              else:
                  return False
docs: Market open or not.
  
              :param datetime time: 欲判斷的日期
              :rtype: bool
              :returns: True 為開市、False 為休市