kraken-alert-patterns
Price alerts, threshold monitoring, and notification triggers for agents.
Futures-specific risk management: leverage, funding rates, margin, and liquidation awareness.
Claude Code
$ npx -y skills add krakenfx/kraken-cli --skill kraken-futures-risk --agent claude-code
Codex
$ npx skills add krakenfx/kraken-cli --skill kraken-futures-risk -a codex -y
Cursor
$ npx skills add krakenfx/kraken-cli --skill kraken-futures-risk -a cursor -y
Gemini CLI
$ npx skills add krakenfx/kraken-cli --skill kraken-futures-risk -a gemini-cli -y
GitHub Copilot
$ npx skills add krakenfx/kraken-cli --skill kraken-futures-risk -a github-copilot -y
OpenCode
$ npx skills add krakenfx/kraken-cli --skill kraken-futures-risk -a opencode -y
Windsurf
$ npx skills add krakenfx/kraken-cli --skill kraken-futures-risk -a windsurf -y
name: kraken-futures-risk
version: 1.0.0
description: "Futures-specific risk management: leverage, funding rates, margin, and liquidation awareness."
metadata:
openclaw:
category: "finance"
requires:
bins: ["kraken"]Use this skill for:
Check current leverage preferences:
kraken futures leverage -o json 2>/dev/null
Check leverage for a specific symbol:
kraken futures leverage --symbol PF_XBTUSD -o json 2>/dev/null
Set maximum leverage (requires human approval):
kraken futures set-leverage PF_XBTUSD 5 -o json 2>/dev/null
Lower leverage reduces liquidation risk but requires more margin per position.
Check historical funding rates:
kraken futures historical-funding-rates PF_XBTUSD -o json 2>/dev/null
Funding rates are periodic payments between longs and shorts. Positive rates mean longs pay shorts; negative rates mean shorts pay longs. High sustained rates increase carry cost for directional positions.
Use funding rates to:
Check account balances and margin:
kraken futures accounts -o json 2>/dev/null
Key fields of the multi-collateral account, under `.accounts.flex`: `marginEquity`, `availableMargin`, `initialMargin`, `maintenanceMargin`, `unrealizedFunding`, `pnl`.
Margin ratio = `.accounts.flex.maintenanceMargin / .accounts.flex.marginEquity`. When this approaches 1.0, liquidation risk is high.
View all open positions:
kraken futures positions -o json 2>/dev/null
Stream position updates in real time:
kraken futures ws open-positions -o json 2>/dev/null
Monitor P&L and size continuously. Set agent-side thresholds for:
Check which currency each symbol's P&L settles in:
kraken futures pnl-preferences -o json 2>/dev/null
Set preference for a specific symbol:
kraken futures set-pnl-preference PF_XBTUSD USD -o json 2>/dev/null
Check if any positions are in the unwind queue (approaching liquidation):
kraken futures unwind-queue -o json 2>/dev/null
If positions appear here, the agent should alert immediately and consider reducing exposure.
Before placing a futures order, always:
1. Check available margin:
kraken futures accounts -o json 2>/dev/null
2. Check current positions:
kraken futures positions -o json 2>/dev/null
3. Check current leverage:
kraken futures leverage --symbol PF_XBTUSD -o json 2>/dev/null
4. Estimate position margin requirement based on order size and leverage. 5. Confirm available funds exceed the required margin with a safety buffer.
Close all positions:
kraken futures cancel-all --yes -o json 2>/dev/null # Then close each position with a reduce-only market order kraken futures order sell PF_XBTUSD <POSITION_SIZE> --type market --reduce-only -o json 2>/dev/null
Dead man's switch:
kraken futures cancel-after 300 -o json 2>/dev/null
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) .…