Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LaGregance opened this issue Jul 9, 2024 · 1 comment

Comments

@LaGregance
Copy link

LaGregance commented Jul 9, 2024

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.

@Martin-Molinero
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants