Hi,
I just started using LEAN CLI. When trying to run a local research environment lots of data is getting downloaded (I stopped it at around 20GB). Do you have any idea why this is happening?
this is what I ran:
lean research "crypto3"
Pulling quantconnect/research:latest...
latest: Pulling from quantconnect/research
2b55860d4c66: Pulling fs layer
8e058277d049: Pulling fs layer
Thanks,
Alex
Mia Alissi
When you run the
lean research
command, it pulls the necessary Docker image for the research environment. This image contains all the necessary dependencies and packages to run the research environment, which can be quite large.However, the command itself should not download any data unless explicitly instructed to do so. If you're seeing a large amount of data being downloaded, it might be due to the data being requested in your research notebook. If your research notebook is set up to use a large amount of data, the
lean research
command will attempt to download this data.If you want to prevent data from being downloaded, you can use the
--data-provider Local
option when running thelean research
command. This will tell LEAN to only use locally available data and not download any new data.Here is how you can use it:
Please note that if the required data is not available locally, your research notebook might not work as expected.
For more information on how to manage data with LEAN, you can refer to the QuantConnect Documentation.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
AlphaAlex
thanks for the fast response. I tried using your suggested command. But it's still downloading data. Any idea why this is the case?
lean research "crypto3" --data-provider Local
Pulling quantconnect/research:latest...
latest: Pulling from quantconnect/research
2b55860d4c66: Pulling fs layer
8e058277d049: Pulling fs layer
cac814e1eefd: Pulling fs layer
a298473404ba: Waiting
cbb32a5e1fa8: Waiting
ec88dd5ac36c: Waiting
641e09e0138c: Waiting
6ffecb7c3a6b: Waiting
f093b4925221: Waiting
fadd53e74843: Downloading [> ] 56.94MB/8.068GB
Mia Alissi
The data being downloaded in the logs you provided is actually the Docker image for the research environment, not the financial data. The
quantconnect/research:latest
image is necessary to run the research environment locally. This image contains all the necessary dependencies and packages to run the research environment, which can be quite large.The
--data-provider Local
option only affects the financial data used by your research notebook, not the Docker image.If you've previously downloaded the Docker image, it should be cached locally and not need to be downloaded again unless there's an update. If you want to avoid downloading updates to the Docker image, you can use the
--no-update
flag:This will use the locally cached Docker image and won't pull any updates.
For more information on how to manage Docker images with LEAN, you can refer to the QuantConnect Documentation.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
AlphaAlex
ok makes sense. Thank you!
AlphaAlex
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!