1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-05 12:00:58 +08:00

Merge pull request #357 from zhupr/fix_yahoo_collector

Fix yahoo_collector
This commit is contained in:
you-n-g
2021-03-22 12:41:17 +08:00
committed by GitHub

View File

@@ -185,7 +185,7 @@ class YahooCollector(BaseCollector):
class YahooCollectorCN(YahooCollector, ABC):
def get_stock_list(self):
def get_instrument_list(self):
logger.info("get HS stock symbos......")
symbols = get_hs_stock_symbols()
logger.info(f"get {len(symbols)} symbols.")
@@ -249,7 +249,7 @@ class YahooCollectorCN1min(YahooCollectorCN):
class YahooCollectorUS(YahooCollector, ABC):
def get_stock_list(self):
def get_instrument_list(self):
logger.info("get US stock symbols......")
symbols = get_us_stock_symbols() + [
"^GSPC",