def SetStockUniverse(self, dbPathIndexConstituents, constituentIndexCode): """""" self.logger.info("<{}>-Set stock universe: {}".format( __name__.split('.')[-1], constituentIndexCode)) self.constituentIndexCode = constituentIndexCode self.objConstituentStocks = GetIndexConstituentStocks.GetIndexConstituentStocks( dbPathIndexConstituents, self.logger)
def SetStockUniverse(self, dbPathIndexConstituents, constituentIndexCode): """ 确定股票投资范围 """ self.constituentIndexCode = constituentIndexCode self.objConstituentStocks = GetIndexConstituentStocks.GetIndexConstituentStocks( dbPathIndexConstituents, self.logger)
def LoadSourceData(self, dbPathFdmtData, dbPathMktData, dbPathConstituentStocks): """ 读取本地数据库数据 """ self.objConstituentStocks = GetIndexConstituentStocks.GetIndexConstituentStocks( dbPathConstituentStocks, self.logger) self.objCalcFactorVals = CalcFactorVals.CalculateFactorValues( dbPathFdmtData, dbPathMktData, None, self.logger)