def get_info(self, code, frequence, market, source, output): if source is DATASOURCE.TDX: res = QATdx.QA_fetch_get_stock_info(code, self.best_ip) return res elif source is DATASOURCE.MONGO: res = QAQuery.QA_fetch_stock_info( code, format=output, collections=self.database.stock_info) return res
def QA_get_stockinfo(codelist : list): res = QAQuery.QA_fetch_stock_info(codelist, collections=DATABASE.stock_info) return res.values