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')
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' )
获取某一时间的某一只股票的指标