QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
194 stars 99 forks source link

[Feature request] Add a configuration to disable database download every day (or change source) #470

Open LaGregance opened 1 month ago

LaGregance commented 1 month ago

Hi,

I have a problem using lean-cli, for the needs of my algo I need to add some changes in the following files (in order to add a new Forex market for which I have the dataset):

The problem is: when I run the lean command for the first time of the day, theses files are re-downloaded from this repo and my change are erased and the field file-database-last-update in lean.json is set on the current date. So I need to apply my change again and again: this is really painful.

I'm sure I'm not the only one facing this issue, so I propose to add an option in the lean.json file to either disable this behavior and/or define a custom source from which the data is downloaded. Why do you think about this proposal ?

Note: For those facing this issue, you can disable auto-update by setting the field file-database-last-update in lean.json to a future date like 01/01/2099.

Martin-Molinero commented 1 month ago

Hey @LaGregance! Sorry for the inconvenience

For those facing this issue, you can disable auto-update by setting the field file-database-last-update in lean.json to a future date like 01/01/2099

Yes, this is the current approach to disable the automatic update logic