dca
Installation
SKILL.md
DCA — Dollar Cost Averaging for Stacks DeFi
Automate recurring token purchases (or sales) on Stacks mainnet via direct Bitflow swaps. The agent executes each order on schedule — no third-party contracts required.
How It Works
setupcreates a local plan file with the full schedulerunis called by the agent on each schedule tick (via cron or heartbeat)- Each
runchecks if an order is due, fetches a live quote, and returnsblockeduntil--confirm - On confirm: executes the swap on-chain, logs the tx hash, advances the schedule
statusshows progress: avg entry price, total spent/received, remaining orders
Quick Start
# 1. Install dependencies
bun run dca/dca.ts install-packs --pack all