Skip to content

请问数据下载下来之后数据如何在已下载的基础上增量更新? #1218

@caijynb

Description

@caijynb

python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn
直接运行该命令获取到的数据到2020-09-25为止,存放的目录是~/.qlib/qlib_data/cn_data

如何在之前的数据基础上更新至2022-07-20
https://qlib.readthedocs.io/en/latest/component/data.html#data-preparation 该章节给出的命令是:
python scripts/data_collector/yahoo/collector.py update_data_to_bin --qlib_data_1d_dir --trading_date --end_date
替换掉参数后命令为:
python scripts/data_collector/yahoo/collector.py update_data_to_bin --qlib_data_1d_dir ~/.qlib/qlib_data/cn_data --trading_date 2020-09-25 --end_date 2022-07-20

运行报错:
get_simple: 1 :name 'start' is not defined

Metadata

Metadata

Assignees

Labels

questionFurther information is requestedstale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions