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

Merge github.com:microsoft/qlib into bxdd-qlib_highfreq_backtest

This commit is contained in:
bxdd
2021-05-27 21:16:35 +08:00
13 changed files with 1074 additions and 62 deletions

View File

@@ -669,7 +669,10 @@ def exists_qlib_data(qlib_dir):
return False
# check calendar bin
for _calendar in calendars_dir.iterdir():
if not list(features_dir.rglob(f"*.{_calendar.name.split('.')[0]}.bin")):
if ("_future" not in _calendar.name) and (
not list(features_dir.rglob(f"*.{_calendar.name.split('.')[0]}.bin"))
):
return False
# check instruments