获取某一时间的某一只股票的指标

def get_indicator(self, time, code, indicator_name=None):
        """
        获取某一时间的某一只股票的指标
        """
        try:
            return self.data.loc[(pd.Timestamp(time), code), indicator_name]
        except:
            raise ValueError('CANNOT FOUND THIS DATE&CODE')