- [Collector Data](#collector-data) - [Automatic update data](#automatic-update-of-daily-frequency-data(from-yahoo-finance)) - [CN Data](#CN-Data) - [1d from yahoo](#1d-from-yahoocn) - [1d from qlib](#1d-from-qlibcn) - [using data(1d)](#using-data1d-cn) - [1min from yahoo](#1min-from-yahoocn) - [1min from qlib](#1min-from-qlibcn) - [using data(1min)](#using-data1min-cn) - [US Data](#CN-Data) - [1d from yahoo](#1d-from-yahoous) - [1d from qlib](#1d-from-qlibus) - [using data(1d)](#using-data1d-us) # Collect Data From Yahoo Finance > *Please pay **ATTENTION** that the data is collected from [Yahoo Finance](https://finance.yahoo.com/lookup) and the data might not be perfect. We recommend users to prepare their own data if they have high-quality dataset. For more information, users can refer to the [related document](https://qlib.readthedocs.io/en/latest/component/data.html#converting-csv-format-into-qlib-format)* > **Examples of abnormal data** - [SH000661](https://finance.yahoo.com/quote/000661.SZ/history?period1=1558310400&period2=1590796800&interval=1d&filter=history&frequency=1d) - [SZ300144](https://finance.yahoo.com/quote/300144.SZ/history?period1=1557446400&period2=1589932800&interval=1d&filter=history&frequency=1d) We have considered **STOCK PRICE ADJUSTMENT**, but some price series seem still very abnormal. ## Requirements ```bash pip install -r requirements.txt ``` ## Collector Data ### Automatic update of daily frequency data(from yahoo finance) > It is recommended that users update the data manually once (--trading_date 2021-05-25) and then set it to update automatically. * Automatic update of data to the "qlib" directory each trading day(Linux) * use *crontab*: `crontab -e` * set up timed tasks: ``` * * * * 1-5 python