name: recipe-start-dca-bot version: 1.0.0 description: "Set up and run a dollar cost averaging bot from paper test to live." metadata: openclaw: category: "recipe" domain: "strategy" requires: bins: ["kraken"] skills: ["kraken-dca-strategy", "kraken-paper-to-live"]
Start a DCA Bot
PREREQUISITE: Load the following skills to execute this recipe:
kraken-dca-strategy,kraken-paper-to-live
Set up a dollar cost averaging bot that buys a fixed dollar amount of BTC at regular intervals.
CAUTION: Live orders spend real money. Paper-test first, then promote with explicit approval.
Steps
- Initialize paper account:
kraken paper init --balance 10000 -o json 2>/dev/null - Calculate volume from dollar amount:
PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].c[0]') && VOLUME=$(echo "scale=8; 100 / $PRICE" | bc) - Run 5 paper DCA buys to validate the loop:
kraken paper buy BTCUSD $VOLUME -o json 2>/dev/null - Check paper results:
kraken paper status -o json 2>/dev/null - Review paper trade history:
kraken paper history -o json 2>/dev/null - Verify live credentials:
kraken auth test -o json 2>/dev/null - Check live balance:
kraken balance -o json 2>/dev/null - Validate the live order:
kraken order buy BTCUSD $VOLUME --type market --validate -o json 2>/dev/null - Execute first live buy (requires human approval):
kraken order buy BTCUSD $VOLUME --type market -o json 2>/dev/null - Verify fill:
kraken trades-history -o json 2>/dev/null