-
Notifications
You must be signed in to change notification settings - Fork 346
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
Allow loan history DB name to be configured #588
base: master
Are you sure you want to change the base?
Conversation
This doesn't cover all files used by the bot so it won't achieve the goal. For example the plugins files for AccountStats. |
I don't understand. Isn't the only file that's written to the loans_history one @rnevet ? I can't see any other files in the AccountStats.py |
It is also used for charts plugin. I'm not sure this approach is maintainable, maybe create a contained output folder? |
The market analysis data is actually best kept as the same file, that means every instance gets access to the data the others are writing. This is how I'm running it currently. That's why I added the exchange prefix to those files. I can add the market_data folder as well if you want, but this particular file needs to be configurable too. I see the reference in Charts.py, I'll make that change. |
I suggest we have shared_data , out instance_data folders... which will allow both the required behaviors.. We should think that in the future, we (or other devs) might want to store data that is either shared or instance related... configuring the filename is tedious. |
I feel this is getting overly complicated for a simple change to allow a filename to be configurable. I'll try to get around to it. I'm still in the middle of the FlaskServer and FRR as min branches though. The access is already synced if you're using the docker-compose file. It mounts the local dir as a volume and then links it into the working dir of the container so you have access to the market data folder. |
I agree, I thought it might be complicated. |
It's going to have to wait until after the flask stuff is finished. There will be too many conflicts that I don't want to have to resolve. |
Description
Allows multiple bots to run from the same directory, for example in a docker setup.
TESTING STAGE
Testing
Types of changes
Checklist: