Ejemplo n.º 1
0
 def get_instrument_list(self) -> List[str]:
     logger.info("get cn stock symbols......")
     symbols = get_hs_stock_symbols()
     if self.symbol_regex is not None:
         regex_compile = re.compile(self.symbol_regex)
         symbols = [
             symbol for symbol in symbols if regex_compile.match(symbol)
         ]
     logger.info(f"get {len(symbols)} symbols.")
     return symbols
Ejemplo n.º 2
0
 def stock_list(self):
     if self._stock_list is None:
         self._stock_list = get_hs_stock_symbols()
     return self._stock_list
Ejemplo n.º 3
0
 def get_instrument_list(self):
     logger.info("get HS stock symbols......")
     symbols = get_hs_stock_symbols()
     logger.info(f"get {len(symbols)} symbols.")
     return symbols