kraken-alert-patterns
Price alerts, threshold monitoring, and notification triggers for agents.
Run a weekly portfolio rebalance to maintain target asset allocations.
Claude Code
$ npx -y skills add krakenfx/kraken-cli --skill recipe-weekly-rebalance --agent claude-code
Codex
$ npx skills add krakenfx/kraken-cli --skill recipe-weekly-rebalance -a codex -y
Cursor
$ npx skills add krakenfx/kraken-cli --skill recipe-weekly-rebalance -a cursor -y
Gemini CLI
$ npx skills add krakenfx/kraken-cli --skill recipe-weekly-rebalance -a gemini-cli -y
GitHub Copilot
$ npx skills add krakenfx/kraken-cli --skill recipe-weekly-rebalance -a github-copilot -y
OpenCode
$ npx skills add krakenfx/kraken-cli --skill recipe-weekly-rebalance -a opencode -y
Windsurf
$ npx skills add krakenfx/kraken-cli --skill recipe-weekly-rebalance -a windsurf -y
name: recipe-weekly-rebalance
version: 1.0.0
description: "Run a weekly portfolio rebalance to maintain target asset allocations."
metadata:
openclaw:
category: "recipe"
domain: "portfolio"
requires:
bins: ["kraken"]
skills: ["kraken-rebalancing"]> **PREREQUISITE:** Load the following skill to execute this recipe: `kraken-rebalancing`
Check portfolio drift and rebalance to target weights once per week.
1. Get balances: `kraken balance -o json 2>/dev/null` 2. Get prices: `kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null` 3. Calculate current weights (agent computes USD value per asset / total) 4. Compare to targets (e.g., 50% BTC, 30% ETH, 20% SOL) 5. If any asset drifts more than 5% from target, compute rebalance trades: `SELL_VOL=$(echo "scale=8; ($CURRENT_BTC_VALUE - $TARGET_BTC_VALUE) / $BTC_PRICE" | bc)` and `BUY_VOL=$(echo "scale=8; ($TARGET_SOL_VALUE - $CURRENT_SOL_VALUE) / $SOL_PRICE" | bc)` 6. Present the rebalance plan to the user with estimated fees 7. Validate sell orders: `kraken order sell BTCUSD $SELL_VOL --type market --validate -o json 2>/dev/null` 8. Execute sells first (requires human approval): `kraken order sell BTCUSD $SELL_VOL --type market -o json 2>/dev/null` 9. Execute buys with freed capital: `kraken order buy SOLUSD $BUY_VOL --type market -o json 2>/dev/null` 10. Verify final allocations: `kraken balance -o json 2>/dev/null`
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`.
Trade on Kraken from your terminal, or let your AI agent trade for you. One install covers crypto, tokenized U.S. stocks and ETFs (for non-U.S. customers), forex, and futures. Every command can answer in JSON.
Price alerts, threshold monitoring, and notification triggers for agents.
Progress from manual trading to full agent autonomy with controlled risk at each level.
Capture the spot-futures price spread with delta-neutral basis trades.
Dollar cost averaging with scheduled buys and performance tracking.
Discover staking strategies, allocate funds, and track earn positions.
Handle order failures, network errors, and duplicate submissions safely.
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…