mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-13 07:46:53 +08:00
support US index
This commit is contained in:
22
scripts/data_collector/cn_index/README.md
Normal file
22
scripts/data_collector/cn_index/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# CSI300/CSI100 History Companies Collection
|
||||
|
||||
## Requirements
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Collector Data
|
||||
|
||||
```bash
|
||||
# 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user