krakenfx/kraken-cli/kraken-dca-strategy
Claude Code and agent skill by krakenfx/kraken-cli
- community
Checking that the SKILL.md file is still in the repository.
Dollar cost averaging with scheduled buys and performance tracking.
Install
npx vskill@latest install krakenfx/kraken-cli/kraken-dca-strategySKILL.md
kraken-dca-strategy
Use this skill for:
- implementing a recurring buy strategy at fixed intervals
- tracking average cost basis over time
- comparing DCA performance against lump-sum entry
- running DCA simulations in paper mode first
Core Concept
Dollar cost averaging buys a fixed dollar amount of an asset at regular intervals regardless of price. This reduces timing risk and smooths entry cost over volatile periods.
Paper DCA Loop (Test First)
Always validate the strategy in paper mode before going live.
The paper buy command takes base-asset volume, not dollar amount. Calculate volume first:
Live DCA Single Buy
Live orders run outside the paper workspace, so run unset KRAKEN_WORKSPACE first. Inside it, the buy fills on paper and trades-history --consolidate-taker is refused.
Each interval, the agent executes one market buy for the fixed amount:
- Check current price:
``bash kraken ticker BTCUSD -o json 2>/dev/null ``
- Calculate volume from dollar amount (e.g., $100 at current price):
``bash PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].last_price') VOLUME=$(echo "scale=8; 100 / $PRICE" | bc) ``
- Validate the order:
``bash kraken order buy BTCUSD $VOLUME --type market --validate -o json 2>/dev/null ``
- Execute (requires human approval):
``bash kraken order buy BTCUSD $VOLUME --type market -o json 2>/dev/null ``
- Log the trade for cost basis tracking.
Cost Basis Tracking
After each buy, query trade history to compute running average:
The agent should maintain a running total:
- Total invested (sum of all dollar amounts)
- Total units acquired (sum of all volumes)
- Average cost = total invested / total units
- Current value = total units * current price
- Unrealized P&L = current value - total invested
Limit-Order DCA Variant
Instead of market buys, place limit orders slightly below the current price for better fills:
Check fill status at the next interval. Cancel unfilled orders before placing new ones:
Multi-Asset DCA
Split a fixed budget across multiple assets (e.g., 60% BTC, 30% ETH, 10% SOL):
Scheduling
The CLI does not include a built-in scheduler. Agents should use external scheduling (cron, task scheduler, or the agent's own loop timer) to trigger DCA buys at the chosen interval (daily, weekly, bi-weekly, monthly).
Hard Rules
- Never execute live DCA buys without explicit human approval for the strategy and per-trade confirmation (unless operating at autonomy level 4+).
- Always paper-test the DCA loop first.
- Track cost basis after every buy; do not lose history.
- Cancel stale limit orders before placing new ones to avoid duplicate exposure.
- If you hit a mismatch between what you are trying to do and the CLI's interface or responses — including a mismatch between this skill and the installed CLI version's contract — feel free to submit feedback with
kraken feedback.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kraken-dca-strategy/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 10
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/krakenfx/kraken-cli/kraken-dca-strategy)