Automated Dollar Cost Averaging for crypto. Scheduled recurring buys with tracking and performance reporting.
When the user wants to set up, modify, check, or manage Dollar Cost Averaging (DCA) for crypto purchases.
When the user asks about their DCA setup:
cd ~/trading-agent && python3 -c "from engine.dca_engine import DCAEngine; import json; d = DCAEngine(); print(json.dumps(d.get_config(), indent=2))"When the user wants to run DCA immediately:
cd ~/trading-agent && python3 -c "from engine.dca_engine import DCAEngine; import json; d = DCAEngine(); results = d.run_scheduled_dca(); print(json.dumps(results, indent=2))"When the user asks about DCA results:
cd ~/trading-agent && python3 -c "from engine.dca_engine import DCAEngine; import json; d = DCAEngine(); print(json.dumps(d.get_dca_performance('PAIR'), indent=2))"When the user wants to change DCA configuration:
cd ~/trading-agent && python3 -c "from engine.dca_engine import DCAEngine; import json; d = DCAEngine(); result = d.update_dca_config('PAIR', AMOUNT, 'FREQUENCY'); print(json.dumps(result, indent=2))"Run: cd ~/trading-agent && python3 -c "from engine.dca_engine import DCAEngine; import json; d = DCAEngine(); print(json.dumps(d.get_dca_history(days=30), indent=2))"
DCA runs automatically via cron. The setup script installs:
# Crontab entry (default: daily at 9 AM UTC)
0 9 * * * cd ~/trading-agent && python3 -m engine.dca_engine >> logs/dca.log 2>&1
You can also run the daemon mode for Docker/VPS:
python3 -m engine.dca_engine --daemon