1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

Fix yahoo_collector

This commit is contained in:
zhupr
2021-03-22 10:29:07 +08:00
parent ba56e4071e
commit 598ee875a0

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",