1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-01 10:01:19 +08:00
Files
qlib/scripts/data_collector/cn_index
Pengrong Zhu d224ea447e Fix high-freq data (#702)
* fix the collector.py yahoo 1min factor calculation

* fix HFSignalRecord
2021-11-20 15:03:53 +08:00
..
2021-11-20 15:03:53 +08:00
2020-11-19 10:36:14 +08:00
2020-11-19 10:36:14 +08:00

CSI300/CSI100 History Companies Collection

Requirements

pip install -r requirements.txt

Collector Data

# parse instruments, using in qlib/instruments.
python collector.py --index_name CSI300 --qlib_dir ~/.qlib/qlib_data/cn_data --method parse_instruments

# parse new companies
python collector.py --index_name CSI300 --qlib_dir ~/.qlib/qlib_data/cn_data --method save_new_companies

# index_name support: CSI300, CSI100
# help
python collector.py --help