code: def get_timerange(self, start, end, code=None):
          
          try:
              return self.data.loc[(slice(pd.Timestamp(start), pd.Timestamp(end)), slice(code)), :]
          except:
              return ValueError('CANNOT FOUND THIS TIME RANGE')
docs: 获取某一段时间的某一只股票的指标