From kraken-cli
Cancels all Kraken spot and futures orders and closes all positions at market prices in emergencies. Verifies completion and warns of slippage risks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kraken-cli:recipe-emergency-flattenThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **PREREQUISITE:** Load the following skills to execute this recipe: `kraken-risk-operations`, `kraken-liquidation-guard`
PREREQUISITE: Load the following skills to execute this recipe:
kraken-risk-operations,kraken-liquidation-guard
Immediately cancel all orders and close all positions across spot and futures.
CAUTION: This closes everything at market prices. Slippage may be significant. The
--yesflag skips confirmation prompts and is only appropriate at autonomy level 4+ (seekraken-autonomy-levels). At lower levels, omit--yesand confirm each cancel with the user.
kraken order cancel-all --yes -o json 2>/dev/nullkraken futures cancel-all --yes -o json 2>/dev/nullkraken positions -o json 2>/dev/nullkraken futures positions -o json 2>/dev/null (parse each position's size and side fields)sell for longs, buy for shorts): e.g., kraken futures order sell PF_XBTUSD 1 --reduce-only -o json 2>/dev/nullkraken open-orders -o json 2>/dev/nullkraken futures open-orders -o json 2>/dev/nullkraken futures positions -o json 2>/dev/nullkraken balance -o json 2>/dev/nullnpx claudepluginhub krakenfx/kraken-cliCancels all open orders, closes positions at market, and sweeps advanced orders using cdcx CLI and jq. For market crashes, API key compromise, or emergency hard stops.
Emergency flatten that closes all open paper positions at last mark and sets a 30-minute trading cooldown. User-initiated only via explicit panic/flatten/stop commands.
Prevents Kraken futures liquidation by monitoring margin ratios, alerting on thresholds, automating position reductions, emergency flattens, and margin top-ups.