lean-cli icon indicating copy to clipboard operation
lean-cli copied to clipboard

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

Open LaGregance opened this issue 1 year ago • 1 comments

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):

  • data/market-hours/market-hours-database.json
  • data/symbol-properties/symbol-properties-database.csv

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.

LaGregance avatar Jul 09 '24 06:07 LaGregance

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

Martin-Molinero avatar Jul 09 '24 14:07 Martin-Molinero

setting the field file-database-last-update in lean.json

We can explore making this a lean cli config to improve user experience & also respecting --no-update flag

Martin-Molinero avatar Jan 29 '25 13:01 Martin-Molinero