원클릭으로
kraken-liquidation-guard
Prevent futures liquidation through margin monitoring and emergency procedures.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Prevent futures liquidation through margin monitoring and emergency procedures.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Connect MCP clients to kraken-cli for native tool calling without subprocess wrappers.
Install kraken-cli, create API credentials, and go from paper trading to live in under five minutes.
Discover staking strategies, allocate funds, and track earn positions.
Place, manage, and monitor futures orders across the full lifecycle.
Test strategy logic on paper trading before touching live funds.
Promote a validated paper strategy to live trading with safety checks.
| name | kraken-liquidation-guard |
| version | 1.0.0 |
| description | Prevent futures liquidation through margin monitoring and emergency procedures. |
| metadata | {"openclaw":{"category":"finance"},"requires":{"bins":["kraken"],"skills":["kraken-futures-risk"]}} |
Use this skill for:
kraken futures accounts -o json 2>/dev/null
Key fields:
equity: total account valueinitialMargin: margin held for positionsmaintenanceMargin: minimum margin before liquidationavailableFunds: free margin for new positionsMargin ratio = maintenanceMargin / equity. Liquidation approaches as this ratio nears 1.0.
| Ratio | Status | Action |
|---|---|---|
| < 0.3 | Healthy | Normal operation |
| 0.3 - 0.5 | Caution | Reduce position or add margin |
| 0.5 - 0.7 | Warning | Reduce position immediately |
| > 0.7 | Critical | Emergency flatten |
kraken futures ws balances -o json 2>/dev/null | while read -r line; do
# Parse equity and maintenanceMargin
# Calculate ratio
# Alert or act when threshold is breached
done
Or poll periodically:
kraken futures accounts -o json 2>/dev/null
If a position enters the unwind queue, liquidation is imminent:
kraken futures unwind-queue -o json 2>/dev/null
Any result here requires immediate action.
Cancel all open orders, then close all positions:
# Cancel all orders to free held margin
kraken futures cancel-all --yes -o json 2>/dev/null
# Close each position with reduce-only market orders
kraken futures positions -o json 2>/dev/null
# For each position:
kraken futures order sell PF_XBTUSD <SIZE> --reduce-only -o json 2>/dev/null
Transfer funds from spot wallet to futures to increase margin:
kraken futures transfer 5000 USD -o json 2>/dev/null
Or from main account:
kraken wallet-transfer USD 5000 --from <SPOT_IIBAN> --to <FUTURES_IIBAN> -o json 2>/dev/null
Lower leverage to reduce margin requirements:
kraken futures set-leverage PF_XBTUSD 2 -o json 2>/dev/null
Always run a dead man's switch during futures sessions:
kraken futures cancel-after 600 -o json 2>/dev/null
If the agent crashes, orders auto-cancel, preventing further margin consumption.