用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/krakenfx/kraken-cli --skill kraken-futures-risk命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Capture the spot-futures price spread with delta-neutral basis trades.
基于 SOC 职业分类
正在显示 SKILL.md
| 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: availableFunds, initialMargin, maintenanceMargin, unrealizedFunding, pnl.
Margin ratio = maintenanceMargin / equity. 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 P&L calculation method:
kraken futures pnl-preferences -o json 2>/dev/null
Set preference for a specific symbol:
kraken futures set-pnl-preference PF_XBTUSD FIFO -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:
kraken futures accounts -o json 2>/dev/null
kraken futures positions -o json 2>/dev/null
kraken futures leverage --symbol PF_XBTUSD -o json 2>/dev/null
Close all positions:
kraken futures cancel-all -o json 2>/dev/null
# Then close each position with a reduce-only market order
kraken futures order sell PF_XBTUSD <POSITION_SIZE> --reduce-only -o json 2>/dev/null
Dead man's switch:
kraken futures cancel-after 300 -o json 2>/dev/null
futures set-leverage and futures set-pnl-preference are flagged dangerous. Never change either without explicit human approval — a leverage change also alters the margin requirement on open positions, in both directions.--reduce-only when closing positions to prevent accidental reversals.kraken feedback.