kraken-alert-patterns
Price alerts, threshold monitoring, and notification triggers for agents.
Portfolio analysis, P&L tracking, trade history, and export reports.
Claude Code
$ npx -y skills add krakenfx/kraken-cli --skill kraken-portfolio-intel --agent claude-code
Codex
$ npx skills add krakenfx/kraken-cli --skill kraken-portfolio-intel -a codex -y
Cursor
$ npx skills add krakenfx/kraken-cli --skill kraken-portfolio-intel -a cursor -y
Gemini CLI
$ npx skills add krakenfx/kraken-cli --skill kraken-portfolio-intel -a gemini-cli -y
GitHub Copilot
$ npx skills add krakenfx/kraken-cli --skill kraken-portfolio-intel -a github-copilot -y
OpenCode
$ npx skills add krakenfx/kraken-cli --skill kraken-portfolio-intel -a opencode -y
Windsurf
$ npx skills add krakenfx/kraken-cli --skill kraken-portfolio-intel -a windsurf -y
name: kraken-portfolio-intel
version: 1.0.0
description: "Portfolio analysis, P&L tracking, trade history, and export reports."
metadata:
openclaw:
category: "finance"
requires:
bins: ["kraken"]Use this skill for:
Simple balance:
kraken balance -o json 2>/dev/null
Extended balance (includes credit and held amounts):
kraken extended-balance -o json 2>/dev/null
Trade balance (margin, equity, free margin):
kraken trade-balance --asset USD -o json 2>/dev/null
Combine balances with current prices to compute total portfolio value:
# Get all balances kraken balance -o json 2>/dev/null # Get prices for held assets kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null # Agent calculates: # value_per_asset = balance * price # total_value = sum of all values # weight_per_asset = value / total_value
Recent trades:
kraken trades-history -o json 2>/dev/null
With ledger entries for cost basis:
kraken trades-history --ledgers -o json 2>/dev/null
Consolidated taker trades (merge partial fills):
kraken trades-history --consolidate-taker -o json 2>/dev/null
Time-filtered:
kraken closed-orders --start 1704067200 --end 1706745600 -o json 2>/dev/null
Query specific trades by TXID:
kraken query-trades <TXID1> <TXID2> -o json 2>/dev/null
View all ledger entries (trades, deposits, withdrawals, staking):
kraken ledgers -o json 2>/dev/null
Filter by type:
kraken ledgers --type trade -o json 2>/dev/null kraken ledgers --type deposit -o json 2>/dev/null kraken ledgers --type withdrawal -o json 2>/dev/null kraken ledgers --type staking -o json 2>/dev/null
Filter by asset:
kraken ledgers --asset BTC -o json 2>/dev/null
Time range:
kraken ledgers --asset BTC --type trade --start 1704067200 --end 1706745600 -o json 2>/dev/null
Check current volume and fee tier:
kraken volume --pair BTCUSD -o json 2>/dev/null
The response includes 30-day volume and the corresponding maker/taker fee rates.
Request a trade or ledger export for offline analysis:
kraken export-report --report trades --description "Q1 2024 trades" --format CSV --starttm 1704067200 --endtm 1711929600 -o json 2>/dev/null
Check export status:
kraken export-status --report trades -o json 2>/dev/null
Download when ready:
kraken export-retrieve <REPORT_ID> -o json 2>/dev/null
Clean up old reports (`export-delete` is flagged dangerous — the report is gone and must be regenerated, so confirm with the user first):
kraken export-delete <REPORT_ID> -o json 2>/dev/null
Futures account summary:
kraken futures accounts -o json 2>/dev/null
Futures fill history:
kraken futures fills --since 2024-01-01T00:00:00Z -o json 2>/dev/null
Futures execution history:
kraken futures history-executions --sort desc -o json 2>/dev/null
Futures account log (CSV export):
kraken futures history-account-log-csv --since 2024-01-01T00:00:00Z -o json 2>/dev/null
Spot margin positions:
kraken positions --show-pnl -o json 2>/dev/null
Futures positions:
kraken futures positions -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) .…