kraken-alert-patterns
Price alerts, threshold monitoring, and notification triggers for agents.
Generate a daily profit and loss summary from trades and balances.
Claude Code
$ npx -y skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report --agent claude-code
Codex
$ npx skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report -a codex -y
Cursor
$ npx skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report -a cursor -y
Gemini CLI
$ npx skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report -a gemini-cli -y
GitHub Copilot
$ npx skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report -a github-copilot -y
OpenCode
$ npx skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report -a opencode -y
Windsurf
$ npx skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report -a windsurf -y
name: recipe-daily-pnl-report
version: 1.0.0
description: "Generate a daily profit and loss summary from trades and balances."
metadata:
openclaw:
category: "recipe"
domain: "portfolio"
requires:
bins: ["kraken"]
skills: ["kraken-portfolio-intel"]> **PREREQUISITE:** Load the following skill to execute this recipe: `kraken-portfolio-intel`
Generate a daily summary of trading activity, fees, and portfolio change.
1. Compute today's midnight timestamp: `TS=$(date -j -f '%Y-%m-%d' "$(date +%Y-%m-%d)" +%s 2>/dev/null || date -d 'today 00:00' +%s)` 2. Get current balances: `kraken balance -o json 2>/dev/null` 3. Get current prices: `kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null` 4. Calculate total portfolio value in USD 5. Get today's trades: `kraken trades-history --consolidate-taker -o json 2>/dev/null` 6. Get today's ledger entries: `kraken ledgers --start $TS -o json 2>/dev/null` 7. Calculate realized P&L from closed trades 8. Calculate fees paid today (sum of fee fields from trades) 9. Check futures positions if applicable: `kraken futures positions -o json 2>/dev/null` 10. Check futures funding accrued: `kraken futures accounts -o json 2>/dev/null` 11. Present summary: total value, daily change, realized P&L, fees, open positions
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) .…