DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.23k stars 2.04k forks source link

Enhancement - Scheduled MongoDB prune #1020

Open shr00mie opened 6 years ago

shr00mie commented 6 years ago

Enhancement:

set cron or manual command to prune mongo for trade data older than c.days per conf.js. as that can grow rather large if keeping track of multiple exchanges/coins for 30 days of trade data each. if not backtesting further than c.days, no reason to keep data older than backtest duration.

Fredrik81 commented 6 years ago

would be nice if this can be in the zenbot code to do this prune and keep it out of cron in order to keep simplicity for the user and also think it will be easier for the docker uses just to change config file and not cron file?