microsoft / qlib

Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.
https://qlib.readthedocs.io/en/latest/
MIT License
14.54k stars 2.53k forks source link

Client Error when downloading data #1791

Closed Yottaxx closed 1 month ago

Yottaxx commented 1 month ago

Dear authors:

I've just faced the client error when executing the codes illustrated in your official documentation:

download 1d

python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn

download 1min

python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/qlib_cn_1min --region cn --interval 1min

or from qlib.tests.data import GetData

GetData().qlib_data(exists_skip=True)

requests.exceptions.HTTPError: 403 Client Error: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. for url: https://qlibpublic.blob.core.windows.net/data/default/stock_data/v2/qlib_data_cn_1d_0.9.zip?sv=2020-10-02&st=2023-06-21T00%3A58%3A06Z&se=2043-06-22T00%3A58%3A00Z&sr=c&sp=rl&sig=ykiWECM7%2BsPLXE32ZM6p2Tc1mMDeUaCmo8LD%2BOKiAo4%3D

May I wonder is there any solution?

Envs: Mac ( Intel ) python3.8 the latest version of qlib

TompaBay commented 1 month ago

I have similar issue when trying to download us data, wonder how did you solve it?