1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00
This commit is contained in:
zhupr
2020-11-18 18:57:54 +08:00
committed by you-n-g
parent 9eb58ad366
commit 7b2a9a15e3

View File

@@ -77,7 +77,10 @@ class GetData:
-------
"""
file_name = f"{name}_{region}_{intervel}_{version}.zip"
# TODO: The US stock code contains "PRN", and the directory cannot be created on Windows system
if region.lower() == "us":
logger.warning(f"The US stock code contains 'PRN', and the directory cannot be created on Windows system")
file_name = f"{name}_{region.lower()}_{intervel}_{version}.zip"
self._download_data(file_name.lower(), target_dir)
def csv_data_cn(self, target_dir="~/.qlib/csv_data/cn_data"):